Skip to main content

property ScriptOptions.importModuleDynamically

Used to specify how the modules should be loaded during the evaluation of this script when import() is called. This option is part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see Support of dynamic import() in compilation APIs.

Type #

((
specifier: string,
script: Script,
importAttributes: ImportAttributes,
) => Module | Promise<Module>)

| constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
| undefined

你找到了你需要的东西吗?

隐私政策