DEV Community

Lakshya Thakur
Lakshya Thakur

Posted on

Solve CRA 4.0 slow recompile time

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.

Top comments (0)