Fixes calculating number of threads for HappyPack (#10)

This commit is contained in:
Andrew Grekov 2019-03-06 02:02:49 +03:00 committed by Kyle Carberry
parent 3b48c57861
commit 14ead1a62f
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ module.exports = (options = {}) => ({
plugins: [ plugins: [
new HappyPack({ new HappyPack({
id: "ts", id: "ts",
threads: os.cpus().length - 1, threads: Math.max(os.cpus().length - 1, 1),
loaders: [{ loaders: [{
path: "ts-loader", path: "ts-loader",
query: { query: {