From c16183478d8bc715e6f188ef185918caff007583 Mon Sep 17 00:00:00 2001 From: joedeveloper Date: Sun, 18 Jun 2017 08:08:24 +0700 Subject: [PATCH] uglify comparisons: false - fix meteor #8706 Problematic issue what would cause people to disable minification entirely. relates issues in other projects https://github.com/facebookincubator/create-react-app/pull/2379 https://github.com/sleepycat/usesthis/commit/523c87249af1f86e1f1010ebda4a12451727871e https://github.com/mapbox/mapbox-gl-js/issues/4359 https://github.com/mishoo/UglifyJS2/issues/2011#issuecomment-304444229 --- minifier.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minifier.js b/minifier.js index 56f0ef7..83dad43 100644 --- a/minifier.js +++ b/minifier.js @@ -10,7 +10,8 @@ meteorJsMinify = function (source) { compress: { drop_debugger: false, unused: false, - dead_code: false + dead_code: false, + comparisons: false } }).code;