Skip to content

Commit 3748f9b

Browse files
authored
Update packages/tsconfig-reference/copy/en/options/module.md
1 parent 08477ad commit 3748f9b

File tree

1 file changed

+2
-2
lines changed
  • packages/tsconfig-reference/copy/en/options

1 file changed

+2
-2
lines changed

packages/tsconfig-reference/copy/en/options/module.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ The `node16`, `node18`, `node20`, and `nodenext` modes integrate with Node's [na
9393

9494
- `node16` is available from TypeScript 4.7
9595
- `node18` is available from TypeScript 5.8 as a replacement for `node16`, with added support for import attributes.
96-
- `node20` is available from TypeScript 5.9 and provides a stable option intended to model the behavior of Node.js v20. Unlike `nodenext`, this option is unlikely to have new behaviors in the future. Also unlike `nodenext`, specifying `--module node20` will imply `--target es2023` unless otherwise configured.
97-
- `nodenext` is available from TypeScript 4.7, but its behavior changes with the latest stable versions of Node.js. As of TypeScript 5.8, `nodenext` supports `require` of ECMAScript modules. `--module nodenext` implies the floating `--target esnext`.
96+
- `node20` adds support for require(ESM).
97+
- `nodenext` is available from TypeScript 4.7, but its behavior changes with the latest stable versions of Node.js. `--module nodenext` implies the floating `--target esnext`.
9898

9999
#### `preserve`
100100

0 commit comments

Comments
 (0)