diff --git a/src/index.js b/src/index.js index fb60fb2b..5aedd277 100644 --- a/src/index.js +++ b/src/index.js @@ -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, }), },