Skip to content

Commit 6a663b8

Browse files
author
Dmitriy Sadkovoy
committed
Configured the thread-loader to keeping workers alive in development mode
1 parent a98c3df commit 6a663b8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/react-scripts/config/webpack.config.dev.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,12 @@ module.exports = {
258258
use: [
259259
// This loader parallelizes code compilation, it is optional but
260260
// improves compile time on larger projects
261-
require.resolve('thread-loader'),
261+
{
262+
loader: require.resolve('thread-loader'),
263+
options: {
264+
poolTimeout: Infinity // keep workers alive for more effective watch mode
265+
},
266+
},
262267
{
263268
loader: require.resolve('babel-loader'),
264269
options: {

0 commit comments

Comments
 (0)