@@ -15,7 +15,7 @@ export function getGlobalPreloadCode() {
1515
1616export function resolve ( specifier , context , defaultResolve ) {
1717 const def = defaultResolve ( specifier , context ) ;
18- if ( def . url . startsWith ( 'nodejs :' ) ) {
18+ if ( def . url . startsWith ( 'node :' ) ) {
1919 return {
2020 url : `custom-${ def . url } ` ,
2121 } ;
@@ -24,7 +24,7 @@ export function resolve(specifier, context, defaultResolve) {
2424}
2525
2626export function getSource ( url , context , defaultGetSource ) {
27- if ( url . startsWith ( 'custom-nodejs :' ) ) {
27+ if ( url . startsWith ( 'custom-node :' ) ) {
2828 const urlObj = new URL ( url ) ;
2929 return {
3030 source : generateBuiltinModule ( urlObj . pathname ) ,
@@ -35,7 +35,7 @@ export function getSource(url, context, defaultGetSource) {
3535}
3636
3737export function getFormat ( url , context , defaultGetFormat ) {
38- if ( url . startsWith ( 'custom-nodejs :' ) ) {
38+ if ( url . startsWith ( 'custom-node :' ) ) {
3939 return { format : 'module' } ;
4040 }
4141 return defaultGetFormat ( url , context , defaultGetFormat ) ;
0 commit comments