We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b141c4 commit 0da03f0Copy full SHA for 0da03f0
lib/internal/main/check_syntax.js
@@ -4,7 +4,7 @@
4
// instead of actually running the file.
5
6
const { getOptionValue } = require('internal/options');
7
-const { URL } = require('internal/url');
+const { URL, pathToFileURL } = require('internal/url');
8
const {
9
prepareMainThreadExecution,
10
markBootstrapComplete,
@@ -14,8 +14,6 @@ const {
14
readStdin,
15
} = require('internal/process/execution');
16
17
-const { pathToFileURL } = require('url');
18
-
19
20
Module: {
21
_resolveFilename: resolveCJSModuleName,
@@ -49,7 +47,6 @@ if (process.argv[1] && process.argv[1] !== '-') {
49
47
}
50
48
51
function loadESMIfNeeded(cb) {
52
- const { getOptionValue } = require('internal/options');
53
const hasModulePreImport = getOptionValue('--import').length > 0;
54
55
if (hasModulePreImport) {
0 commit comments