vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
稳定性: 1.1 - 积极开发
¥Stability: 1.1 - Active development
一个常量,可用作 vm.Script
和 vm.compileFunction()
的 importModuleDynamically
选项,以便 Node.js 使用主上下文中的默认 ESM 加载器来加载请求的模块。
¥A constant that can be used as the importModuleDynamically
option to
vm.Script
and vm.compileFunction()
so that Node.js uses the default
ESM loader from the main context to load the requested module.
详细信息参见 编译 API 中支持动态 import()
。
¥For detailed information, see
Support of dynamic import()
in compilation APIs.