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 @@ -1457,12 +1457,21 @@ forked processes, or clustered processes.
1457
1457
1458
1458
<!-- YAML
1459
1459
added: v12.0.0
1460
+ changes:
1461
+ - version: v23.6.0
1462
+ pr-url: https://github.com/nodejs/node/pull/56350
1463
+ description: Add support for `-typescript` values.
1464
+ - version:
1465
+ - v22.7.0
1466
+ - v20.19.0
1467
+ pr-url: https://github.com/nodejs/node/pull/53619
1468
+ description: ESM syntax detection is enabled by default.
1460
1469
-->
1461
1470
1462
1471
This configures Node.js to interpret ` --eval ` or ` STDIN ` input as CommonJS or
1463
1472
as an ES module. Valid values are ` "commonjs" ` , ` "module" ` , ` "module-typescript" ` and ` "commonjs-typescript" ` .
1464
1473
The ` "-typescript" ` values are not available with the flag ` --no-experimental-strip-types ` .
1465
- The default is ` "commonjs" ` .
1474
+ The default is no value, or ` "commonjs" ` if ` --no-experimental-detect-module ` is passed .
1466
1475
1467
1476
If ` --input-type ` is not provided,
1468
1477
Node.js will try to detect the syntax with the following steps:
You can’t perform that action at this time.
0 commit comments