Skip to content

Commit 91f39ef

Browse files
authored
Enable eslint caching in development
POC for #740. Haven't found any problem, build times improved about 1s on my project and machine.
1 parent e9493a2 commit 91f39ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: packages/react-scripts/config/webpack.config.dev.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ module.exports = {
118118
// Point ESLint to our predefined config.
119119
options: {
120120
configFile: path.join(__dirname, '../.eslintrc'),
121-
useEslintrc: false
121+
useEslintrc: false,
122+
cache: true
122123
},
123124
// @remove-on-eject-end
124125
loader: 'eslint-loader'

0 commit comments

Comments
 (0)