Remove 'evaluate' babel minify rule to prevent ios / safari errors. (#755)

This commit is contained in:
William O'Beirne 2018-01-08 21:47:43 -05:00 committed by Daniel Ternyak
parent f0ec0f3c0b
commit 6920296f37
1 changed files with 5 additions and 1 deletions

View File

@ -62,8 +62,12 @@ base.plugins.push(
'process.env.NODE_ENV': JSON.stringify('production')
}),
new BabelMinifyPlugin({
// Mangle seems to be reusing variable identifiers, causing errors
mangle: false,
propertyLiterals: false
// These two on top of a lodash file are causing illegal characters for
// safari and ios browsers
evaluate: false,
propertyLiterals: false,
}, {
comments: false
}),