Provides an optional data with V8's code cache data for the supplied source.
interface
vm.SourceTextModuleOptions
interface SourceTextModuleOptions
- importModuleDynamically?: DynamicModuleLoader<SourceTextModule>
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 dynamicimport()
in compilation APIs. - initializeImportMeta?: (meta: ImportMeta, module: SourceTextModule) => void
Called during evaluation of this module to initialize the
import.meta
.