We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
options
1 parent 196bebf commit 4aff7d7Copy full SHA for 4aff7d7
src/index.ts
@@ -208,7 +208,7 @@ export function register (options: Options = {}): () => Register {
208
* Get the extension for a transpiled file.
209
*/
210
function getExtension (fileName: string) {
211
- if (compilerOptions.jsx === 'preserve' && extname(fileName) === '.tsx') {
+ if (config.options.jsx === ts.JsxEmit.Preserve && extname(fileName) === '.tsx') {
212
return '.jsx'
213
}
214
0 commit comments