mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 07:07:33 +00:00
Ignore got in commonjs build
This commit is contained in:
parent
dcc5dada47
commit
199e49184d
1 changed files with 4 additions and 3 deletions
|
|
@ -9,19 +9,20 @@ const baseConfig = {
|
|||
minify: false,
|
||||
sourcemap: false,
|
||||
legalComments: 'none',
|
||||
plugins: [nodeExternalsPlugin()]
|
||||
}
|
||||
|
||||
const moduleConfig = {
|
||||
...baseConfig,
|
||||
outfile: 'dist/index.mjs',
|
||||
format: 'esm'
|
||||
format: 'esm',
|
||||
plugins: [nodeExternalsPlugin()]
|
||||
}
|
||||
|
||||
const legacyConfig = {
|
||||
...baseConfig,
|
||||
outfile: 'dist/index.cjs',
|
||||
format: 'cjs'
|
||||
format: 'cjs',
|
||||
plugins: [nodeExternalsPlugin({ allowList: ['got'] })]
|
||||
}
|
||||
|
||||
build(moduleConfig).then(() => { }).catch(() => { process.exit(1) })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue