Skip to content

Commit e52048f

Browse files
Merge pull request rails#42622 from SkipKayhil/swap-uglifier-terser
Replace uglifier with terser in dummy applications
2 parents 306449b + bcb300d commit e52048f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ gem "bcrypt", "~> 3.1.11", require: false
2323

2424
# This needs to be with require false to avoid it being automatically loaded by
2525
# sprockets.
26-
gem "uglifier", ">= 1.3.0", require: false
26+
gem "terser", ">= 1.1.4", require: false
2727

2828
# Explicitly avoid 1.x that doesn't support Ruby 2.4+
2929
gem "json", ">= 2.0.0"

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,8 @@ GEM
479479
stackprof (0.2.17)
480480
sucker_punch (3.0.1)
481481
concurrent-ruby (~> 1.0)
482+
terser (1.1.4)
483+
execjs (>= 0.3.0, < 3)
482484
thin (1.8.1)
483485
daemons (~> 1.0, >= 1.0.9)
484486
eventmachine (~> 1.0, >= 1.0.4)
@@ -492,8 +494,6 @@ GEM
492494
tzinfo (2.0.4)
493495
concurrent-ruby (~> 1.0)
494496
uber (0.1.0)
495-
uglifier (4.2.0)
496-
execjs (>= 0.3.0, < 3)
497497
unicode-display_width (2.0.0)
498498
useragent (0.16.10)
499499
vegas (0.1.11)
@@ -590,9 +590,9 @@ DEPENDENCIES
590590
sqlite3 (~> 1.4)
591591
stackprof
592592
sucker_punch
593+
terser (>= 1.1.4)
593594
turbolinks (~> 5)
594595
tzinfo-data
595-
uglifier (>= 1.3.0)
596596
w3c_validators (~> 1.3.6)
597597
wdm (>= 0.1.0)
598598
webdrivers

actionmailbox/test/dummy/config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
2424

2525
# Compress JavaScripts and CSS.
26-
config.assets.js_compressor = :uglifier
26+
config.assets.js_compressor = :terser
2727
# config.assets.css_compressor = :sass
2828

2929
# Do not fallback to assets pipeline if a precompiled asset is missed.

actiontext/test/dummy/config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
2626

2727
# Compress JavaScripts and CSS.
28-
config.assets.js_compressor = :uglifier
28+
config.assets.js_compressor = :terser
2929
# config.assets.css_compressor = :sass
3030

3131
# Do not fallback to assets pipeline if a precompiled asset is missed.

0 commit comments

Comments
 (0)