Skip to content

Commit

Permalink
fix(core): missing jsx option
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Aug 9, 2020
1 parent 519754a commit 0518375
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export interface Options {
target?: 'es3' | 'es5' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020'
module?: 'commonjs' | 'umd' | 'amd' | 'es6'
sourcemap?: boolean | 'inline'
jsx?: boolean
experimentalDecorators?: boolean
emitDecoratorMetadata?: boolean
dynamicImport?: boolean
Expand Down
4 changes: 2 additions & 2 deletions packages/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
target: 'es2018',
parser: {
syntax: 'typescript',
tsx: path.endsWith('.tsx'),
tsx: typeof opts.jsx !== 'undefined' ? opts.jsx : path.endsWith('.tsx'),
decorators: Boolean(opts.experimentalDecorators),
dynamicImport: Boolean(opts.dynamicImport),
},
Expand All @@ -48,7 +48,7 @@ module.exports = {
target: 'es2018',
parser: {
syntax: 'typescript',
tsx: path.endsWith('.tsx'),
tsx: typeof opts.jsx !== 'undefined' ? opts.jsx : path.endsWith('.tsx'),
decorators: Boolean(opts.experimentalDecorators),
dynamicImport: Boolean(opts.dynamicImport),
},
Expand Down

0 comments on commit 0518375

Please sign in to comment.