Skip to content

Commit

Permalink
Compare options from reading config (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
srolel authored and blakeembrey committed Oct 11, 2016
1 parent 196bebf commit 4aff7d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export function register (options: Options = {}): () => Register {
* Get the extension for a transpiled file.
*/
function getExtension (fileName: string) {
if (compilerOptions.jsx === 'preserve' && extname(fileName) === '.tsx') {
if (config.options.jsx === ts.JsxEmit.Preserve && extname(fileName) === '.tsx') {
return '.jsx'
}

Expand Down

0 comments on commit 4aff7d7

Please sign in to comment.