@@ -822,6 +822,12 @@ changes:
822822 - v13.14 .0
823823 pr- url: https: // github.com/nodejs/node/pull/32985
824824 description: The ` importModuleDynamically` option is now supported.
825+ - version: v14.3 .0
826+ pr- url: https: // github.com/nodejs/node/pull/33364
827+ description: Removal of ` importModuleDynamically` due to compatibility issues
828+ - version: REPLACEME
829+ pr- url: https: // github.com/nodejs/node/pull/35431
830+ description: Added ` importModuleDynamically` option again.
825831-->
826832
827833* ` code` {string} The body of the function to compile.
@@ -844,6 +850,16 @@ changes:
844850 * `contextExtensions` {Object[]} An array containing a collection of context
845851 extensions (objects wrapping the current scope ) to be applied while
846852 compiling. **Default:** `[]`.
853+ * `importModuleDynamically` {Function } Called during evaluation of this module
854+ when ` import()` is called . If this option is not specified, calls to
855+ ` import()` will reject with [` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING` ][].
856+ This option is part of the experimental modules API , and should not be
857+ considered stable.
858+ * ` specifier` {string} specifier passed to ` import()`
859+ * ` function` {Function }
860+ * Returns: {Module Namespace Object | vm .Module } Returning a ` vm.Module` is
861+ recommended in order to take advantage of error tracking, and to avoid
862+ issues with namespaces that contain ` then` function exports.
847863* Returns: {Function}
848864
849865Compiles the given code into the provided context (if no context is
0 commit comments