@@ -161,13 +161,15 @@ Configuration (TypeScript type).
161
161
> 👉 ** Note** : you can also configure ` runtime ` , ` importSource ` , ` pragma ` , and
162
162
> ` pragmaFrag ` from within files through comments.
163
163
164
- ###### ` options.runtime `
164
+ ##### Fields
165
+
166
+ ###### ` runtime `
165
167
166
168
Choose the [ runtime] [ jsx-runtime ] ([ ` Runtime ` ] [ runtime ] , default: ` 'classic' ` ).
167
169
168
170
Comment form: ` @jsxRuntime theRuntime ` .
169
171
170
- ###### ` options. importSource`
172
+ ###### ` importSource `
171
173
172
174
Place to import ` jsx ` , ` jsxs ` , ` jsxDEV ` , and ` Fragment ` from, when the
173
175
effective runtime is automatic (` string ` , default: ` 'react' ` ).
@@ -188,28 +190,28 @@ Comment form: `@jsxImportSource theSource`.
188
190
> // …
189
191
> ` ` `
190
192
191
- ###### ` options . pragma `
193
+ ###### ` pragma`
192
194
193
195
Identifier or member expression to call when the effective runtime is classic
194
196
(` string` , default: ` ' React.createElement' ` ).
195
197
196
198
Comment form: ` @jsx identifier` .
197
199
198
- ###### ` options . pragmaFrag `
200
+ ###### ` pragmaFrag`
199
201
200
202
Identifier or member expression to use as a symbol for fragments when the
201
203
effective runtime is classic (` string` , default: ` ' React.Fragment' ` ).
202
204
203
205
Comment form: ` @jsxFrag identifier` .
204
206
205
- ###### ` options . development `
207
+ ###### ` development`
206
208
207
209
When in the automatic runtime, whether to import ` theSource/ jsx- dev- runtime .js ` ,
208
210
use ` jsxDEV` , and pass location info when available (` boolean` , default: ` false ` ).
209
211
210
212
This helps debugging but adds a lot of code that you don’t want in production.
211
213
212
- ###### ` options . filePath `
214
+ ###### ` filePath`
213
215
214
216
File path to the original source file (` string` , example: ` ' path/to/file.js' ` ).
215
217
Passed in location info to ` jsxDEV` when using the automatic runtime with
0 commit comments