Skip to content

Commit 3ffb3b1

Browse files
kwonojalexeagle
authored andcommitted
fix(terser): allow fallback binary resolution
1 parent 2ca1791 commit 3ffb3b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/terser/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function main() {
164164
try {
165165
// If necessary, get the new `terser` binary, added for >=4.3.0
166166
terserBinary = terserBinary || require.resolve('terser/bin/terser');
167-
} finally {
167+
} catch (e) {
168168
// If necessary, get the old `uglifyjs` binary from <4.3.0
169169
terserBinary = terserBinary || require.resolve('terser/bin/uglifyjs');
170170
}

0 commit comments

Comments
 (0)