We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
oxc.jsx.development
esbuild.jsxDev
1 parent 3392735 commit 72e88c9Copy full SHA for 72e88c9
packages/vite/src/node/config.ts
@@ -1608,7 +1608,7 @@ export async function resolveConfig(
1608
typeof oxc?.jsx === 'string'
1609
? oxc.jsx
1610
: {
1611
- development: !isProduction,
+ development: oxc?.jsx?.development ?? !isProduction,
1612
...oxc?.jsx,
1613
},
1614
packages/vite/src/node/plugins/oxc.ts
@@ -592,8 +592,8 @@ export function convertEsbuildConfigToOxcConfig(
592
break
593
}
594
595
- if (esbuildTransformOptions.jsxDev) {
596
- jsxOptions.development = true
+ if (esbuildTransformOptions.jsxDev !== undefined) {
+ jsxOptions.development = esbuildTransformOptions.jsxDev
597
598
599
oxcOptions.jsx = jsxOptions
0 commit comments