From eefab8fb3e87f2da9d0507652d649c216c25e622 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 28 Nov 2017 14:19:14 +0100 Subject: [PATCH] Disable comparisons to fix mapbox-gl bundling (#3346) --- server/build/webpack.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/build/webpack.js b/server/build/webpack.js index ba0ec11b..5c67aca6 100644 --- a/server/build/webpack.js +++ b/server/build/webpack.js @@ -153,7 +153,12 @@ export default async function createCompiler (dir, { buildId, dev = false, quiet }), new UglifyJSPlugin({ parallel: true, - sourceMap: false + sourceMap: false, + uglifyOptions: { + compress: { + comparisons: false + } + } }) ) plugins.push(new webpack.optimize.ModuleConcatenationPlugin())