Skip to main content
constants - node__vm.d.ts - Node documentation
namespace constants

Usage in Deno

```typescript import { constants } from "node:node__vm.d.ts"; ```
Returns an object containing commonly used constants for VM operations.

Variables

v
constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
Stability: 1.1 - Active development 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. 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).