File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 4
4
// instead of actually running the file.
5
5
6
6
const { getOptionValue } = require ( 'internal/options' ) ;
7
- const { URL } = require ( 'internal/url' ) ;
7
+ const { URL , pathToFileURL } = require ( 'internal/url' ) ;
8
8
const {
9
9
prepareMainThreadExecution,
10
10
markBootstrapComplete,
@@ -14,8 +14,6 @@ const {
14
14
readStdin,
15
15
} = require ( 'internal/process/execution' ) ;
16
16
17
- const { pathToFileURL } = require ( 'url' ) ;
18
-
19
17
const {
20
18
Module : {
21
19
_resolveFilename : resolveCJSModuleName ,
@@ -49,7 +47,6 @@ if (process.argv[1] && process.argv[1] !== '-') {
49
47
}
50
48
51
49
function loadESMIfNeeded ( cb ) {
52
- const { getOptionValue } = require ( 'internal/options' ) ;
53
50
const hasModulePreImport = getOptionValue ( '--import' ) . length > 0 ;
54
51
55
52
if ( hasModulePreImport ) {
You can’t perform that action at this time.
0 commit comments