[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>
This commit is contained in:
Jason Miller 2020-07-20 22:05:26 -04:00 committed by GitHub
parent c87aaf0e97
commit 305a50fb7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -468,7 +468,7 @@ function createConfig(options, entry, format, writeMeta) {
sourceMap: options.sourcemap,
declaration: true,
declarationDir: getDeclarationDir({ options, pkg }),
jsx: 'react',
jsx: 'preserve',
jsxFactory:
// TypeScript fails to resolve Fragments when jsxFactory
// is set, even when it's the same as the default value.