Skip to content

Commit 4aff7d7

Browse files
srolelblakeembrey
authored andcommitted
Compare options from reading config (#217)
1 parent 196bebf commit 4aff7d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export function register (options: Options = {}): () => Register {
208208
* Get the extension for a transpiled file.
209209
*/
210210
function getExtension (fileName: string) {
211-
if (compilerOptions.jsx === 'preserve' && extname(fileName) === '.tsx') {
211+
if (config.options.jsx === ts.JsxEmit.Preserve && extname(fileName) === '.tsx') {
212212
return '.jsx'
213213
}
214214

0 commit comments

Comments
 (0)