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.
property importModuleDynamically | Node.js vm module | Bun BuildDocsReferenceGuidesBlogDiscord/node:vm/CompileFunctionOptions/importModuleDynamicallyPimportModuleDynamically BuildDocsReferenceGuidesBlogDiscord /node:vm/CompileFunctionOptions/importModuleDynamicallyPimportModuleDynamically vm.CompileFunctionOptions.importModuleDynamicallyimportModuleDynamically?: number | DynamicModuleLoaderFunction & PickScript, 'cachedData' | 'cachedDataProduced' | 'cachedDataRejected'>>
Search the reference...
/
property
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →property importModuleDynamically | Node.js vm module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- 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](https://nodejs.org/docs/latest-v25.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).