|
|
@ -17,7 +17,7 @@ const PROD = !DEV
|
|
|
|
const ROOT = fileURLToPath(import.meta.url)
|
|
|
|
const ROOT = fileURLToPath(import.meta.url)
|
|
|
|
const r = (p: string) => resolve(ROOT, '..', p)
|
|
|
|
const r = (p: string) => resolve(ROOT, '..', p)
|
|
|
|
|
|
|
|
|
|
|
|
const external = [...Object.keys(pkg.dependencies), 'buffer', 'punycode']
|
|
|
|
const external = [...Object.keys(pkg.dependencies)]
|
|
|
|
|
|
|
|
|
|
|
|
const plugins = [
|
|
|
|
const plugins = [
|
|
|
|
alias({
|
|
|
|
alias({
|
|
|
@ -32,7 +32,7 @@ const plugins = [
|
|
|
|
preventAssignment: true
|
|
|
|
preventAssignment: true
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
commonjs(),
|
|
|
|
commonjs(),
|
|
|
|
nodeResolve(),
|
|
|
|
nodeResolve({ preferBuiltins: true }),
|
|
|
|
esbuild({ target: 'node14' }),
|
|
|
|
esbuild({ target: 'node14' }),
|
|
|
|
json()
|
|
|
|
json()
|
|
|
|
]
|
|
|
|
]
|
|
|
|