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.
delete plugin.transform
1 parent b1a31ae commit f2112d5Copy full SHA for f2112d5
packages/plugin-react/src/index.ts
@@ -192,7 +192,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
192
if (
193
canSkipBabel(staticBabelOptions.plugins, staticBabelOptions) &&
194
skipFastRefresh &&
195
- isProduction
+ (opts.jsxRuntime === 'classic' ? isProduction : true)
196
) {
197
delete viteBabel.transform
198
}
0 commit comments