Skip to content

Commit 305a50f

Browse files
[draft] Use Babel to transpile JSX instead of TypeScript (#573)
Co-authored-by: Leah <me@hrmny.sh> Co-authored-by: Leah <github.leah@hrmny.sh>
1 parent c87aaf0 commit 305a50f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ function createConfig(options, entry, format, writeMeta) {
468468
sourceMap: options.sourcemap,
469469
declaration: true,
470470
declarationDir: getDeclarationDir({ options, pkg }),
471-
jsx: 'react',
471+
jsx: 'preserve',
472472
jsxFactory:
473473
// TypeScript fails to resolve Fragments when jsxFactory
474474
// is set, even when it's the same as the default value.

0 commit comments

Comments
 (0)