We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b42d81 commit 27b814cCopy full SHA for 27b814c
lib/internal/process/esm_loader.js
@@ -8,8 +8,6 @@ const { pathToFileURL } = require('internal/url');
8
const {
9
getModuleFromWrap,
10
} = require('internal/vm/module');
11
-const { getOptionValue } = require('internal/options');
12
-const userLoader = getOptionValue('--experimental-loader');
13
14
exports.initializeImportMetaObject = function(wrap, meta) {
15
const { callbackMap } = internalBinding('module_wrap');
@@ -38,6 +36,8 @@ exports.ESMLoader = ESMLoader;
38
36
39
37
exports.initializeLoader = initializeLoader;
40
async function initializeLoader() {
+ const { getOptionValue } = require('internal/options');
+ const userLoader = getOptionValue('--experimental-loader');
41
if (!userLoader)
42
return;
43
let cwd;
0 commit comments