@@ -879,17 +879,21 @@ added: REPLACEME
879879
880880> Stability: 1.1 - Active Developement
881881
882- Supports loading a synchronous ES module graph in ` require() ` . If the module
883- graph is not synchronous (contains top-level await), Node.js throws an error
884- without executing the module. If ` --print-pending-tla ` is passed, Node.js
885- will evaluate the module, try to locate the top-level awaits, and print
886- their location to help users fix them.
887-
888- With this option alone, the module being ` require() ` 'd should be explicitly
889- marked as an ES module either using the ` "type": "module" ` field in
890- ` package.json ` or the ` .mjs ` extension. To load implicit ES modules with
891- automatic syntax-based module type detection, use
892- ` --experimental-require-module-with-detection ` .
882+ Supports loading a synchronous ES module graph in ` require() ` .
883+
884+ When ` --experimental-require-module ` is enabled, and ` require() `
885+ resolves to an ES module, if the module is fully synchronous
886+ (contains no top-level await), the ` require() ` call returns the
887+ module name space object. Otherwise, Node.js throws an error
888+ without executing the module. If ` --experimental-print-required-tla `
889+ is passed, Node.js will evaluate the module, try to locate the
890+ top-level awaits, and print their location to help users fix them.
891+
892+ With this option alone, the module being ` require() ` 'd should be
893+ explicitly marked as an ES module either using the ` "type": "module" `
894+ field in ` package.json ` or the ` .mjs ` extension. To load implicit ES
895+ modules ending with ` .js ` using automatic syntax-based module type
896+ detection, use ` --experimental-require-module-with-detection ` .
893897
894898### ` --experimental-require-module-with-detection `
895899
@@ -1611,7 +1615,7 @@ changes:
16111615
16121616Identical to ` -e ` but prints the result.
16131617
1614- ### ` --print-pending -tla `
1618+ ### ` --experimental- print-required -tla `
16151619
16161620<!-- YAML
16171621added: REPLACEME
@@ -2602,7 +2606,7 @@ Node.js options that are allowed are:
26022606* ` --policy-integrity `
26032607* ` --preserve-symlinks-main `
26042608* ` --preserve-symlinks `
2605- * ` --print-pending -tla `
2609+ * ` --experimental- print-required -tla `
26062610* ` --prof-process `
26072611* ` --redirect-warnings `
26082612* ` --report-compact `
0 commit comments