diff --git a/scripts/uglify-tests.js b/scripts/uglify-tests.js index 9e92f2a87c0..3a4a7a3ab0c 100644 --- a/scripts/uglify-tests.js +++ b/scripts/uglify-tests.js @@ -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 }) => {