Solve CRA 4.0 slow recompile time
Lakshya Thakur
Posted on November 16, 2020
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
FezVrasta
posted on
fixes #9886
This is the commit that removed the cache flag: https://github.com/FezVrasta/create-react-app/commit/d07b7d025f5933710fcb01718617dbdf4bc54c33#r43578777
๐ ๐ช ๐
๐ฉ
Lakshya Thakur
Posted on November 16, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.