@@ -879,17 +879,21 @@ added: REPLACEME
879
879
880
880
> Stability: 1.1 - Active Developement
881
881
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 ` .
893
897
894
898
### ` --experimental-require-module-with-detection `
895
899
@@ -1611,7 +1615,7 @@ changes:
1611
1615
1612
1616
Identical to ` -e ` but prints the result.
1613
1617
1614
- ### ` --print-pending -tla `
1618
+ ### ` --experimental- print-required -tla `
1615
1619
1616
1620
<!-- YAML
1617
1621
added: REPLACEME
@@ -2602,7 +2606,7 @@ Node.js options that are allowed are:
2602
2606
* ` --policy-integrity `
2603
2607
* ` --preserve-symlinks-main `
2604
2608
* ` --preserve-symlinks `
2605
- * ` --print-pending -tla `
2609
+ * ` --experimental- print-required -tla `
2606
2610
* ` --prof-process `
2607
2611
* ` --redirect-warnings `
2608
2612
* ` --report-compact `
0 commit comments