Skip to content

Commit

Permalink
fix: jsx tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Aug 10, 2022
1 parent 4972722 commit 8e9b98e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,12 +550,13 @@ function createConfig(options, entry, format, writeMeta) {
...(options.generateTypes !== false && {
declarationDir: getDeclarationDir({ options, pkg }),
}),
jsx: 'preserve',
...(!options.jsxImportSource && {
jsx: 'preserve',
jsxFactory: options.jsx,
jsxFragmentFactory: options.jsxFragment,
}),
...(options.jsxImportSource && {
jsx: 'react-jsx',
jsxImportSource: options.jsxImportSource,
}),
},
Expand Down

0 comments on commit 8e9b98e

Please sign in to comment.