Skip to main content
constants.USE_MAIN_CONTEXT_DEFAULT_LOADER - vm - Node documentation
variable constants.USE_MAIN_CONTEXT_DEFAULT_LOADER

Usage in Deno

import { constants } from "node:vm";

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.

Type

number
Back to top