diff --git a/doc/api/vm.md b/doc/api/vm.md index 85e5d5ac30d309..c6f9d3a0e29645 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -58,6 +58,11 @@ executed in specific contexts. + +* {Object} + +Returns an object containing commonly used constants for VM operations. + +### `vm.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][]. + ## `vm.createContext([contextObject[, options]])`