Commit b929d9e
fix:
* fix: `jsx` is undefined by default, not preserve or react
- one gets an error when using JSX without configuring `jsx`:
`error TS17004: Cannot use JSX unless the '--jsx' flag is provided.`
- TSConfig Reference said default was `react`, which is inaccurate
- Compiler Options said default was `preserve`, which is also inaccurate
- Add a `undefined` as the default in TSConfig Reference, same as
allowUnrechableCode
- Remove the default in Compiler Options, same as all the other options
without defaults
----
History:
Reference:
- `preserve` was written as the default in eae5cc3#diff-444415c73770eafd0f9db7d708d74131R5
- But then was written as `react` in the body in eae5cc3#diff-444415c73770eafd0f9db7d708d74131R5
- It was then switched to `react` in 450ae96#diff-a912c6af3a16bf4288093c1264955bc6R120
- And then removed in 76b7d43#diff-a912c6af3a16bf4288093c1264955bc6L120
Compiler Options:
- `preserve` was written as the default in 66f17ad#diff-bfc78b96c15b0ee906c1ab6176546dceR41
* Update Compiler Options.md
* Update Compiler Options.md
Co-authored-by: Orta Therox <ortam@microsoft.com>
Co-authored-by: Orta Therox <git@orta.io>jsx is undefined by default, not preserve or react (#1102)1 parent 78d3b56 commit b929d9e
File tree
2 files changed
+3
-2
lines changed- packages
- documentation/copy/en/project-config
- tsconfig-reference/scripts
2 files changed
+3
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
189 | | - | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
0 commit comments