Skip to content

Commit

Permalink
enhance: Enable terser parallelism in WSL (#1710)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Oct 19, 2022
1 parent 5864e29 commit ff8a730
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/webpack-config-anansi/src/prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { CleanWebpackPlugin } from 'clean-webpack-plugin';
import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
import RemoveEmptyScriptsPlugin from 'webpack-remove-empty-scripts';
import PreloadWebpackPlugin from '@vue/preload-webpack-plugin';
import isWsl from 'is-wsl';

import { getStyleRules } from './base';

Expand Down Expand Up @@ -143,9 +142,6 @@ export default function makeProdConfig(
keep_fnames: !!env?.profile || terserOptions?.keep_fnames,
},
extractComments: true,
// Disabled on WSL (Windows Subsystem for Linux) due to an issue with Terser
// https://github.com/webpack-contrib/terser-webpack-plugin/issues/21
parallel: !isWsl,
}),
// cssnano on node_modules as well as our loaders
new CssMinimizerPlugin(),
Expand Down

0 comments on commit ff8a730

Please sign in to comment.