File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1482,12 +1482,21 @@ forked processes, or clustered processes.
1482
1482
1483
1483
<!-- YAML
1484
1484
added: v12.0.0
1485
+ changes:
1486
+ - version: REPLACEME
1487
+ pr-url: https://github.com/nodejs/node/pull/56350
1488
+ description: Add support for `-typescript` values.
1489
+ - version:
1490
+ - v22.7.0
1491
+ - v20.19.0
1492
+ pr-url: https://github.com/nodejs/node/pull/53619
1493
+ description: ESM syntax detection is enabled by default.
1485
1494
-->
1486
1495
1487
1496
This configures Node.js to interpret ` --eval ` or ` STDIN ` input as CommonJS or
1488
1497
as an ES module. Valid values are ` "commonjs" ` , ` "module" ` , ` "module-typescript" ` and ` "commonjs-typescript" ` .
1489
1498
The ` "-typescript" ` values are not available with the flag ` --no-experimental-strip-types ` .
1490
- The default is ` "commonjs" ` .
1499
+ The default is no value, or ` "commonjs" ` if ` --no-experimental-detect-module ` is passed .
1491
1500
1492
1501
If ` --input-type ` is not provided,
1493
1502
Node.js will try to detect the syntax with the following steps:
You can’t perform that action at this time.
0 commit comments