doc: add history entries to --input-type
section
PR-URL: https://github.com/nodejs/node/pull/58175 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
03f2a4401d
commit
c96e96c765
@ -1457,12 +1457,21 @@ forked processes, or clustered processes.
|
|||||||
|
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
added: v12.0.0
|
added: v12.0.0
|
||||||
|
changes:
|
||||||
|
- version: v23.6.0
|
||||||
|
pr-url: https://github.com/nodejs/node/pull/56350
|
||||||
|
description: Add support for `-typescript` values.
|
||||||
|
- version:
|
||||||
|
- v22.7.0
|
||||||
|
- v20.19.0
|
||||||
|
pr-url: https://github.com/nodejs/node/pull/53619
|
||||||
|
description: ESM syntax detection is enabled by default.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
This configures Node.js to interpret `--eval` or `STDIN` input as CommonJS or
|
This configures Node.js to interpret `--eval` or `STDIN` input as CommonJS or
|
||||||
as an ES module. Valid values are `"commonjs"`, `"module"`, `"module-typescript"` and `"commonjs-typescript"`.
|
as an ES module. Valid values are `"commonjs"`, `"module"`, `"module-typescript"` and `"commonjs-typescript"`.
|
||||||
The `"-typescript"` values are not available with the flag `--no-experimental-strip-types`.
|
The `"-typescript"` values are not available with the flag `--no-experimental-strip-types`.
|
||||||
The default is `"commonjs"`.
|
The default is no value, or `"commonjs"` if `--no-experimental-detect-module` is passed.
|
||||||
|
|
||||||
If `--input-type` is not provided,
|
If `--input-type` is not provided,
|
||||||
Node.js will try to detect the syntax with the following steps:
|
Node.js will try to detect the syntax with the following steps:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user