Skip to content

Commit

Permalink
$mol_build internal node prefix check
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Dec 21, 2024
1 parent 62e45c4 commit ac8bfb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ namespace $ {
json.version = version.join( '.' )

for( let dep of this.nodeDeps([ path , exclude ]).keys() ) {
if( require('module').builtinModules.includes(dep) ) continue
if( require('module').builtinModules.includes(dep) || dep.startsWith('node:')) continue
json.dependencies[ dep ] = `*`
}

Expand Down

0 comments on commit ac8bfb3

Please sign in to comment.