Skip to content

Commit 2af233d

Browse files
committedMar 25, 2022
fix: add builtins and node: prefixes to externals
1 parent 7a1115f commit 2af233d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/build.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ export async function build (rootDir: string, stub: boolean, inputConfig: BuildC
3333
declaration: false,
3434
outDir: 'dist',
3535
stub,
36-
externals: [...Module.builtinModules],
36+
externals: [
37+
...Module.builtinModules,
38+
...Module.builtinModules.map(m => 'node:' + m),
39+
'builtins'
40+
],
3741
dependencies: [],
3842
devDependencies: [],
3943
peerDependencies: [],

0 commit comments

Comments
 (0)
Please sign in to comment.