Slow recompile time after upgrading to create-react-app 4.0 ?
Well there will be a fix for it available in next patch release but meanwhile a simple dirty trick to get up to speed :-
📌 Go to node_modules/react-scripts/config/webpack.config.js
📌 Add a cache:true
key:value pair to the ESLintPlugin
constructor object.
📌Start your app
Below is the link to the merged PR which I referred for the stated workaround.
fix: slow recompile time #9911
fixes #9886
This is the commit that removed the cache flag: https://github.com/FezVrasta/create-react-app/commit/d07b7d025f5933710fcb01718617dbdf4bc54c33#r43578777
Top comments (0)