Skip to content

Commit

Permalink
Package an unminified version of terser
Browse files Browse the repository at this point in the history
This started in #4 but
couldn't see a reason why.

Minification makes it harder to debug issues and also makes it
much harder to review the gem changes on upgrade.

AFAIK this gem is only used with `exec-js` for which minification
doesn't impact performance much.
  • Loading branch information
byroot committed Apr 2, 2024
1 parent 4d9d757 commit 4eac4ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ namespace :terser do

FileUtils.cp("vendor/source-map/dist/source-map.min.js", "lib/source-map.js")

# FileUtils.cp("vendor/terser/dist/bundle.min.js", "lib/terser.js")
minified_source = `node ./vendor/terser/bin/terser vendor/terser/dist/bundle.min.js`
File.write("lib/terser.js", minified_source)
FileUtils.cp("vendor/terser/dist/bundle.min.js", "lib/terser.js")

FileUtils.cp("vendor/split/split.js", "lib/split.js")
`patch -p1 -i patches/es5-string-split.patch`
Expand Down

0 comments on commit 4eac4ee

Please sign in to comment.