Skip to content

Commit

Permalink
Merge pull request #725 from hyoo-ru/fix-node-resolve
Browse files Browse the repository at this point in the history
$mol_build internal node prefix check
  • Loading branch information
nin-jin authored Dec 21, 2024
2 parents 62e45c4 + ac8bfb3 commit 8035373
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 8035373

Please sign in to comment.