Merge "Fix error on single-CPU machine"

This commit is contained in:
Zuul 2021-11-05 05:35:04 +00:00 committed by Gerrit Code Review
commit fd40b95913

View File

@ -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'],
}),