From 305a50fb7a79246f1977cedee1341b6c06e793c0 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Mon, 20 Jul 2020 22:05:26 -0400 Subject: [PATCH] [draft] Use Babel to transpile JSX instead of TypeScript (#573) Co-authored-by: Leah Co-authored-by: Leah --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index c56a43c..2e41cea 100644 --- a/src/index.js +++ b/src/index.js @@ -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.