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.
opts.fastRefresh
1 parent 7744749 commit 5cf4e69Copy full SHA for 5cf4e69
1 file changed
packages/plugin-react/src/index.ts
@@ -70,7 +70,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
70
resolve: projectRoot
71
})
72
isProduction = config.isProduction
73
- skipFastRefresh = isProduction || config.command === 'build'
+ skipFastRefresh ||= isProduction || config.command === 'build'
74
75
const jsxInject = config.esbuild && config.esbuild.jsxInject
76
if (jsxInject && importReactRE.test(jsxInject)) {
0 commit comments