1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

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({
parallel: true,
sourceMap: false
sourceMap: false,
uglifyOptions: {
compress: {
comparisons: false
}
}
})
)
plugins.push(new webpack.optimize.ModuleConcatenationPlugin())