diff --git a/packages/documentation/copy/en/project-config/Compiler Options.md b/packages/documentation/copy/en/project-config/Compiler Options.md index 395d43d3f2be..99f06d830936 100644 --- a/packages/documentation/copy/en/project-config/Compiler Options.md +++ b/packages/documentation/copy/en/project-config/Compiler Options.md @@ -868,7 +868,7 @@ tsc app.ts util.ts --target esnext --outfile index.js --moduleResolution

classic, node10/node, node16, nodenext, or bundler

-

Classic if module is AMD, UMD, System, or ES6/ES2015; Matches if module is node16 or nodenext; Node otherwise.

+

Node10 if module is CommonJS; Node16 if module is Node16 or Node18; NodeNext if module is NodeNext; Bundler if module is Preserve; Classic otherwise.

diff --git a/packages/tsconfig-reference/scripts/tsconfigRules.ts b/packages/tsconfig-reference/scripts/tsconfigRules.ts index 90c39046a90f..53f9de250041 100644 --- a/packages/tsconfig-reference/scripts/tsconfigRules.ts +++ b/packages/tsconfig-reference/scripts/tsconfigRules.ts @@ -238,9 +238,11 @@ export const defaultsForOptions = { "`ES6`/`ES2015` otherwise.", ], moduleResolution: [ - "`Classic` if [`module`](#module) is `AMD`, `UMD`, `System`, or `ES6`/`ES2015`;", - "Matches if [`module`](#module) is `node16` or `nodenext`;", - "`Node` otherwise.", + "`Node10` if [`module`](#module) is `CommonJS`;", + "`Node16` if [`module`](#module) is `Node16` or `Node18`;", + "`NodeNext` if [`module`](#module) is `NodeNext`;", + "`Bundler` if [`module`](#module) is `Preserve`;", + "`Classic` otherwise.", ], newLine: "`lf`", noImplicitAny: trueIf("strict"),