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 e2990b1 commit eed741aCopy full SHA for eed741a
packages/vite/src/node/config.ts
@@ -1586,7 +1586,7 @@ export async function resolveConfig(
1586
typeof oxc?.jsx === 'string'
1587
? oxc.jsx
1588
: {
1589
- development: !isProduction,
+ development: oxc?.jsx?.development ?? !isProduction,
1590
...oxc?.jsx,
1591
},
1592
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