Skip to content

Commit 2f6f13f

Browse files
committed
fix: jsx tsconfig
1 parent 9e9ab57 commit 2f6f13f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,12 +550,13 @@ function createConfig(options, entry, format, writeMeta) {
550550
...(options.generateTypes !== false && {
551551
declarationDir: getDeclarationDir({ options, pkg }),
552552
}),
553-
jsx: 'preserve',
554553
...(!options.jsxImportSource && {
554+
jsx: 'preserve',
555555
jsxFactory: options.jsx,
556556
jsxFragmentFactory: options.jsxFragment,
557557
}),
558558
...(options.jsxImportSource && {
559+
jsx: 'react-jsx',
559560
jsxImportSource: options.jsxImportSource,
560561
}),
561562
},

0 commit comments

Comments
 (0)