ScriptOptions.importModuleDynamically - Node documentation
property ScriptOptions.importModuleDynamically

Usage in Deno

import { type ScriptOptions } from "node:vm";

Called during evaluation of this module when import() is called. If this option is not specified, calls to import() will reject with ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING.

Type

((
specifier: string,
script: Script,
importAttributes: ImportAttributes,
) => Module) | undefined