This repository was archived by the owner on Sep 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Original file line number Diff line number Diff line change @@ -478,13 +478,13 @@ function parseModuleName(
478
478
if ( meta && meta . url ) {
479
479
scriptURL = meta . url ;
480
480
} else {
481
- scriptURL = new URL ( "file:///" + path . dirname ( containingFile ) + "/" )
481
+ scriptURL = new URL ( "file:///" + path . dirname ( containingFile ) + "/" ) ;
482
482
}
483
483
} else {
484
- scriptURL = new URL ( "file:///" + path . dirname ( containingFile ) + "/" )
484
+ scriptURL = new URL ( "file:///" + path . dirname ( containingFile ) + "/" ) ;
485
485
}
486
486
487
- logger && logger . info ( `baseUrl: ${ scriptURL } ` )
487
+ logger && logger . info ( `baseUrl: ${ scriptURL } ` ) ;
488
488
489
489
const moduleUrl = resolve (
490
490
moduleName ,
@@ -493,11 +493,11 @@ function parseModuleName(
493
493
) ;
494
494
495
495
if ( moduleUrl . protocol === "file:" ) {
496
- return fileURLToPath ( moduleUrl . href )
496
+ return fileURLToPath ( moduleUrl . href ) ;
497
497
}
498
498
499
499
if ( moduleUrl . protocol === "http:" || moduleUrl . protocol === "https:" ) {
500
- return moduleUrl . href
500
+ return moduleUrl . href ;
501
501
}
502
502
503
503
// just support protocol: file, http, https
You can’t perform that action at this time.
0 commit comments