Solve CRA 4.0 slow recompile time

lakbychance

Lakshya Thakur

Posted on November 16, 2020

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.

๐Ÿ’– ๐Ÿ’ช ๐Ÿ™… ๐Ÿšฉ
lakbychance
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.

Related

ยฉ TheLazy.dev

About