File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,12 @@ const {
76
76
maybeCacheSourceMap,
77
77
rekeySourceMap
78
78
} = require ( 'internal/source_map/source_map_cache' ) ;
79
- const { pathToFileURL, fileURLToPath, isURLInstance } = require ( 'internal/url' ) ;
79
+ const {
80
+ pathToFileURL,
81
+ fileURLToPath,
82
+ isURLInstance,
83
+ URL
84
+ } = require ( 'internal/url' ) ;
80
85
const { deprecate } = require ( 'internal/util' ) ;
81
86
const vm = require ( 'vm' ) ;
82
87
const assert = require ( 'internal/assert' ) ;
@@ -1009,7 +1014,7 @@ const absolutePathToUrlConverter = new URL('file://');
1009
1014
1010
1015
function wrapSafe ( filename , content , cjsModuleInstance ) {
1011
1016
let filenameUrl = filename ;
1012
- if ( path . isAbsolute ( filename ) ) {
1017
+ if ( path . isAbsolute ( filename ) ) {
1013
1018
absolutePathToUrlConverter . pathname = filename ;
1014
1019
filenameUrl = absolutePathToUrlConverter . href ;
1015
1020
}
You can’t perform that action at this time.
0 commit comments