@@ -15,7 +15,7 @@ export function getGlobalPreloadCode() {
15
15
16
16
export function resolve ( specifier , context , defaultResolve ) {
17
17
const def = defaultResolve ( specifier , context ) ;
18
- if ( def . url . startsWith ( 'nodejs :' ) ) {
18
+ if ( def . url . startsWith ( 'node :' ) ) {
19
19
return {
20
20
url : `custom-${ def . url } ` ,
21
21
} ;
@@ -24,7 +24,7 @@ export function resolve(specifier, context, defaultResolve) {
24
24
}
25
25
26
26
export function getSource ( url , context , defaultGetSource ) {
27
- if ( url . startsWith ( 'custom-nodejs :' ) ) {
27
+ if ( url . startsWith ( 'custom-node :' ) ) {
28
28
const urlObj = new URL ( url ) ;
29
29
return {
30
30
source : generateBuiltinModule ( urlObj . pathname ) ,
@@ -35,7 +35,7 @@ export function getSource(url, context, defaultGetSource) {
35
35
}
36
36
37
37
export function getFormat ( url , context , defaultGetFormat ) {
38
- if ( url . startsWith ( 'custom-nodejs :' ) ) {
38
+ if ( url . startsWith ( 'custom-node :' ) ) {
39
39
return { format : 'module' } ;
40
40
}
41
41
return defaultGetFormat ( url , context , defaultGetFormat ) ;
0 commit comments