Skip to content

Commit

Permalink
target es5 for uglify tests (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Sep 1, 2020
1 parent f617215 commit 1ca0860
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/uglify-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,8 @@ async function test_case(service, test) {
// Run esbuild as a minifier
try {
var { js: output } = await service.transform(input_code, {
// Don't use "minifyWhitespace: true" because esbuild uses some ES6 syntax
// to make things shorter and uglify can't parse ES6.
minifySyntax: true,
minifyIdentifiers: true,
minify: true,
target: 'es5',
});
} catch (e) {
const formatError = ({ text, location }) => {
Expand Down

0 comments on commit 1ca0860

Please sign in to comment.