refactor: remove punycode from externals

pull/1244/head
Divyansh Singh 2 years ago
parent 45743cb2e3
commit 82565178a7

@ -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()
] ]

Loading…
Cancel
Save