Skip to main content
ScriptOptions - node__vm.d.ts - Node documentation
interface ScriptOptions
extends BaseOptions

Usage in Deno

```typescript import { type ScriptOptions } from "node:node__vm.d.ts"; ```

Properties

optional
cachedData:
Buffer
| ArrayBufferView
| undefined
V8's code cache data for the supplied source.
deprecated
optional
produceCachedData: boolean | undefined
optional
importModuleDynamically:
((
specifier: string,
script: Script,
importAttributes: ImportAttributes,
) => Module)

| constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
| undefined
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-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).