Disable comparisons to fix mapbox-gl bundling (#3346)

This commit is contained in:
Adam Stankiewicz 2017-11-28 14:19:14 +01:00 committed by Tim Neutkens
parent f9c6e12037
commit eefab8fb3e

View file

@ -153,7 +153,12 @@ export default async function createCompiler (dir, { buildId, dev = false, quiet
}), }),
new UglifyJSPlugin({ new UglifyJSPlugin({
parallel: true, parallel: true,
sourceMap: false sourceMap: false,
uglifyOptions: {
compress: {
comparisons: false
}
}
}) })
) )
plugins.push(new webpack.optimize.ModuleConcatenationPlugin()) plugins.push(new webpack.optimize.ModuleConcatenationPlugin())