webpack: Disable module concatenation.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-27 23:22:23 -08:00
committed by Tim Abbott
parent 7c860caffc
commit a6510789c9

View File

@@ -180,6 +180,8 @@ export default (_env: unknown, argv: {mode?: string}): webpack.Configuration[] =
// the source snippets with the eval-* options.
devtool: production ? "source-map" : "cheap-module-source-map",
optimization: {
// Module concatenation interferes with debug-require-webpack-plugin.
concatenateModules: false,
minimizer: [
// Based on a comment in NMFR/optimize-css-assets-webpack-plugin#10.
// Can be simplified when NMFR/optimize-css-assets-webpack-plugin#87