Skip to content

Commit

Permalink
fix: add builtins and node: prefixes to externals
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 25, 2022
1 parent 7a1115f commit 2af233d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ export async function build (rootDir: string, stub: boolean, inputConfig: BuildC
declaration: false,
outDir: 'dist',
stub,
externals: [...Module.builtinModules],
externals: [
...Module.builtinModules,
...Module.builtinModules.map(m => 'node:' + m),
'builtins'
],
dependencies: [],
devDependencies: [],
peerDependencies: [],
Expand Down

0 comments on commit 2af233d

Please sign in to comment.