Skip to content

Commit 7690af5

Browse files
endilieyiansu
authored andcommitted
Upgrade terser & enable parallel minification in wsl (#7857)
1 parent 9d00fce commit 7690af5

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

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

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
'use strict';
1010

1111
const fs = require('fs');
12-
const isWsl = require('is-wsl');
1312
const path = require('path');
1413
const webpack = require('webpack');
1514
const resolve = require('resolve');
@@ -255,9 +254,7 @@ module.exports = function(webpackEnv) {
255254
},
256255
// Use multi-process parallel running to improve the build speed
257256
// Default number of concurrent runs: os.cpus().length - 1
258-
// Disabled on WSL (Windows Subsystem for Linux) due to an issue with Terser
259-
// https://github.com/webpack-contrib/terser-webpack-plugin/issues/21
260-
parallel: !isWsl,
257+
parallel: true,
261258
// Enable file caching
262259
cache: true,
263260
sourceMap: shouldUseSourceMap,

packages/react-scripts/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"fs-extra": "7.0.1",
5555
"html-webpack-plugin": "4.0.0-beta.5",
5656
"identity-obj-proxy": "3.0.0",
57-
"is-wsl": "^1.1.0",
5857
"jest": "24.9.0",
5958
"jest-environment-jsdom-fourteen": "0.1.0",
6059
"jest-resolve": "24.9.0",
@@ -74,7 +73,7 @@
7473
"sass-loader": "7.2.0",
7574
"semver": "6.3.0",
7675
"style-loader": "1.0.0",
77-
"terser-webpack-plugin": "1.4.1",
76+
"terser-webpack-plugin": "2.1.3",
7877
"ts-pnp": "1.1.4",
7978
"url-loader": "2.1.0",
8079
"webpack": "4.41.0",

0 commit comments

Comments
 (0)