Skip to content

Commit fbf0bdc

Browse files
author
jin
committed
++
1 parent 92e3d04 commit fbf0bdc

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

build/build.node.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,6 +1588,7 @@ namespace $ {
15881588

15891589
line.replace(
15901590
/\b(?:require|import)\(\s*['"]([^"'()]*?)['"]\s*\)/ig , ( str , path )=> {
1591+
if( path.startsWith( 'node:' ) ) return str
15911592
$mol_build_depsMerge( depends , { [ path ] : priority } )
15921593
return str
15931594
}

build/ensure/ensure.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ namespace $ {
5353
const mod = $mol_file.absolute( path )
5454
const parent = mod.parent()
5555

56-
if( mod.name().startsWith( 'node:' ) ) return true
57-
5856
if( mod !== this.root() ) this.ensure( parent.path() )
5957

6058
if (mod.exists() && mod.type() !== 'dir') return false

0 commit comments

Comments
 (0)