DEV Community

Lakshya Thakur
Lakshya Thakur

Posted on

2 2

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay