| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5b42d81 commit 27b814c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,8 +8,6 @@ const { pathToFileURL } = require('internal/url'); | |||
| 8 | 8 | const { | |
| 9 | 9 | getModuleFromWrap, | |
| 10 | 10 | } = require('internal/vm/module'); | |
| 11 | - const { getOptionValue } = require('internal/options'); | ||
| 12 | - const userLoader = getOptionValue('--experimental-loader'); | ||
| 13 | 11 | ||
| 14 | 12 | exports.initializeImportMetaObject = function(wrap, meta) { | |
| 15 | 13 | const { callbackMap } = internalBinding('module_wrap'); | |
@@ -38,6 +36,8 @@ exports.ESMLoader = ESMLoader; | |||
| 38 | 36 | ||
| 39 | 37 | exports.initializeLoader = initializeLoader; | |
| 40 | 38 | async function initializeLoader() { | |
| 39 | + const { getOptionValue } = require('internal/options'); | ||
| 40 | + const userLoader = getOptionValue('--experimental-loader'); | ||
| 41 | 41 | if (!userLoader) | |
| 42 | 42 | return; | |
| 43 | 43 | let cwd; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments