From 6920296f37ae0a9ff6b5afffcfc3c49a98b37603 Mon Sep 17 00:00:00 2001 From: William O'Beirne Date: Mon, 8 Jan 2018 21:47:43 -0500 Subject: [PATCH] Remove 'evaluate' babel minify rule to prevent ios / safari errors. (#755) --- webpack_config/webpack.prod.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webpack_config/webpack.prod.js b/webpack_config/webpack.prod.js index d61b7209..23cfd648 100644 --- a/webpack_config/webpack.prod.js +++ b/webpack_config/webpack.prod.js @@ -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 }),