From 39e1f08496dd126a81b6d2b41ec26eab2df2f34f Mon Sep 17 00:00:00 2001 From: Vadym Markov Date: Thu, 21 Oct 2021 18:46:15 +0300 Subject: [PATCH] Fix error on single-CPU machine HappyPack doesn't like 0 threads in config Change-Id: I752a575142ca2844474291f2d8620a85566508b8 --- config/webpack.common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/webpack.common.js b/config/webpack.common.js index 82b26ccc..c5a8c84b 100644 --- a/config/webpack.common.js +++ b/config/webpack.common.js @@ -133,7 +133,7 @@ module.exports = { plugins: [ new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), new HappyPack({ - threads: os.cpus().length - 1, + threads: os.cpus().length - 1 || 1, id: 'jsx', loaders: ['babel-loader?cacheDirectory'], }),