Skip to content

Commit

Permalink
Merge branch 'bugfix/ui-build' into q/2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bert-e committed Mar 30, 2021
2 parents 5952821 + 4b97a25 commit eaacb85
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ui/config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,19 @@ const setWebpackPerformance = () => (config) => {
return config;
};

/**
* After getting a lot of OOM issues while building the UI, we disabled terser parallelism
* Refs: https://github.com/timarney/react-app-rewired/issues/391#issuecomment-571954944
*/
const terserDisableParallelism = () => config => {
config.optimization.minimizer[0].parallel=false;
return config;
};

module.exports = override(
useBabelRc(),
useEslintRc(),
addWebpackPlugin(new CompressionPlugin()),
setWebpackPerformance(),
terserDisableParallelism()
);

0 comments on commit eaacb85

Please sign in to comment.