Skip to content

Commit ea10795

Browse files
mohattBarthélémy Ledoux
and
Barthélémy Ledoux
authored
fix(cypress/react): disable react-refresh for craco setups (#18517)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
1 parent 28e7807 commit ea10795

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

npm/react/plugins/craco/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const { createWebpackDevConfig } = require('@craco/craco')
33
const { getLegacyDevServer } = require('../utils/legacy-setup-dev-server')
44

55
function devServer (cypressDevServerConfig, cracoConfig) {
6+
process.env.FAST_REFRESH = 'false'
7+
68
return startDevServer({
79
options: cypressDevServerConfig,
810
webpackConfig: createWebpackDevConfig(cracoConfig),

0 commit comments

Comments
 (0)