Skip to content

Commit

Permalink
fix(terser): allow fallback binary resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj authored and alexeagle committed Jun 3, 2020
1 parent 2ca1791 commit 3ffb3b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/terser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function main() {
try {
// If necessary, get the new `terser` binary, added for >=4.3.0
terserBinary = terserBinary || require.resolve('terser/bin/terser');
} finally {
} catch (e) {
// If necessary, get the old `uglifyjs` binary from <4.3.0
terserBinary = terserBinary || require.resolve('terser/bin/uglifyjs');
}
Expand Down

0 comments on commit 3ffb3b1

Please sign in to comment.