@@ -90,7 +90,7 @@ changes:
9090 This option is part of the experimental modules API, and should not be
9191 considered stable.
9292 * ` specifier ` {string} specifier passed to ` import() `
93- * ` module ` {vm.Module }
93+ * ` script ` {vm.Script }
9494 * Returns: {Module Namespace Object|vm.Module} Returning a ` vm.Module ` is
9595 recommended in order to take advantage of error tracking, and to avoid
9696 issues with namespaces that contain ` then ` function exports.
@@ -821,6 +821,9 @@ changes:
821821 - version: v14.3 .0
822822 pr- url: https: // github.com/nodejs/node/pull/33364
823823 description: Removal of ` importModuleDynamically` due to compatibility issues
824+ - version: REPLACEME
825+ pr- url: REPLACEME
826+ description: Added ` importModuleDynamically` option again.
824827-->
825828
826829* ` code` {string} The body of the function to compile.
@@ -843,6 +846,16 @@ changes:
843846 * `contextExtensions` {Object[]} An array containing a collection of context
844847 extensions (objects wrapping the current scope ) to be applied while
845848 compiling. **Default:** `[]`.
849+ * `importModuleDynamically` {Function } Called during evaluation of this module
850+ when ` import()` is called . If this option is not specified, calls to
851+ ` import()` will reject with [` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING` ][].
852+ This option is part of the experimental modules API , and should not be
853+ considered stable.
854+ * ` specifier` {string} specifier passed to ` import()`
855+ * ` function` {Function }
856+ * Returns: {Module Namespace Object | vm .Module } Returning a ` vm.Module` is
857+ recommended in order to take advantage of error tracking, and to avoid
858+ issues with namespaces that contain ` then` function exports.
846859* Returns: {Function}
847860
848861Compiles the given code into the provided context (if no context is
0 commit comments