File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 9
9
'use strict' ;
10
10
11
11
const fs = require ( 'fs' ) ;
12
+ const isWsl = require ( 'is-wsl' ) ;
12
13
const path = require ( 'path' ) ;
13
14
const webpack = require ( 'webpack' ) ;
14
15
const resolve = require ( 'resolve' ) ;
@@ -222,7 +223,9 @@ module.exports = function(webpackEnv) {
222
223
} ,
223
224
// Use multi-process parallel running to improve the build speed
224
225
// Default number of concurrent runs: os.cpus().length - 1
225
- parallel : true ,
226
+ // Disabled on WSL (Windows Subsystem for Linux) due to an issue with Terser
227
+ // https://github.com/webpack-contrib/terser-webpack-plugin/issues/21
228
+ parallel : ! isWsl ,
226
229
// Enable file caching
227
230
cache : true ,
228
231
sourceMap : shouldUseSourceMap ,
Original file line number Diff line number Diff line change 49
49
"fs-extra" : " 7.0.1" ,
50
50
"html-webpack-plugin" : " 4.0.0-beta.5" ,
51
51
"identity-obj-proxy" : " 3.0.0" ,
52
+ "is-wsl" : " ^1.1.0" ,
52
53
"jest" : " 24.7.1" ,
53
54
"jest-environment-jsdom-fourteen" : " 0.1.0" ,
54
55
"jest-resolve" : " 24.7.1" ,
You can’t perform that action at this time.
0 commit comments