diff --git a/Gemfile b/Gemfile index b61b0bab94..716812231e 100644 --- a/Gemfile +++ b/Gemfile @@ -34,7 +34,7 @@ gem "paranoia" ## views gem "sass-rails" gem "coffee-rails" -gem "uglifier" +gem "uglifier", "= 4.1.18" # 4.1.19 has an issue https://github.com/mishoo/UglifyJS2/issues/3245 gem "therubyracer" gem "bootstrap-sass", "~> 2.3.2" # will not upgrade gem "haml" diff --git a/Gemfile.lock b/Gemfile.lock index 530d5204bc..de5e6eb0c9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -617,7 +617,7 @@ GEM ttfunk (1.5.1) tzinfo (1.2.5) thread_safe (~> 0.1) - uglifier (4.1.19) + uglifier (4.1.18) execjs (>= 0.3.0, < 3) unicode-display_width (1.4.0) unicorn (5.4.1) @@ -737,7 +737,7 @@ DEPENDENCIES text_helpers therubyracer thin - uglifier + uglifier (= 4.1.18) unicorn vuejs-rails (~> 1.0.26) web-console diff --git a/config/initializers/uglifier_restriction.rb b/config/initializers/uglifier_restriction.rb new file mode 100644 index 0000000000..42814780fe --- /dev/null +++ b/config/initializers/uglifier_restriction.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true + +unless Uglifier::VERSION == "4.1.18" + raise "Uglifier 4.1.19 has a bug (https://github.com/mishoo/UglifyJS2/issues/3245). + Please ensure it's fixed before advancing" +end