Skip to content

Commit 846a372

Browse files
authored
Fix default value of esModuleInterop (#3307)
1 parent d8eb50e commit 846a372

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/documentation/copy/en/project-config/Compiler Options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
549549
<td><code><a href='/tsconfig/#esModuleInterop'>--esModuleInterop</a></code></td>
550550
<td><p><code>boolean</code></p>
551551
</td>
552-
<td><p><code>true</code> if <a href="#module"><code>module</code></a> is <code>node16</code> or <code>nodenext</code>; <code>false</code> otherwise.</p>
552+
<td><p><code>true</code> if <a href="#module"><code>module</code></a> is <code>node16</code>, <code>nodenext</code>, or <code>preserve</code>; <code>false</code> otherwise.</p>
553553
</td>
554554
</tr>
555555
<tr class="option-description odd"><td colspan="3">

packages/tsconfig-reference/scripts/tsconfigRules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export const defaultsForOptions = {
219219
alwaysStrict: trueIf("strict"),
220220
declaration: trueIf("composite"),
221221
esModuleInterop: [
222-
"`true` if [`module`](#module) is `node16` or `nodenext`;",
222+
"`true` if [`module`](#module) is `node16`, `nodenext`, or `preserve`;",
223223
"`false` otherwise.",
224224
],
225225
exclude: [

0 commit comments

Comments
 (0)