-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Description
Is there any way to support JSX in module files?
I've tried changing the esbuild options in unbuild:
// build.confg.ts
import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
rollup: {
esbuild: {
jsx: 'preserve',
// or jsxFactory: 'h',
},
}
})But it seems to ignore those options.
I still get React.createElement as output.
If I run mkdist --jsx=preserve I do get the runtime output with jsx preserved.
Metadata
Metadata
Assignees
Labels
No labels