We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uglify version (uglifyjs -V)
uglifyjs -V
uglify-es 3.3.9
JavaScript input
In case of using for await...of, it occurs error
for await...of
const tests = [ Promise.resolve('test 1'), Promise.resolve('test 2'), Promise.resolve('test 3'), Promise.resolve('test 4'), ] function runTests() { for await (const test of tests) { console.log(test) } }
The uglifyjs CLI command executed or minify() options used.
uglifyjs
minify()
JavaScript output or error produced.
The text was updated successfully, but these errors were encountered:
Please use uglify-js which supports for await...of and other ES6+ features − uglify-es has been deprecated.
uglify-js
uglify-es
uglify-js 3.17.4
require('uglify-js').minify(` const tests = [ Promise.resolve('test 1'), Promise.resolve('test 2'), Promise.resolve('test 3'), Promise.resolve('test 4'), ] function runTests() { for await (const test of tests) { console.log(test) } } `, { output: { beautify: true, }, }).code;
produces:
const tests = [ Promise.resolve("test 1"), Promise.resolve("test 2"), Promise.resolve("test 3"), Promise.resolve("test 4") ]; function runTests() { for await (const s of tests) console.log(s); }
Sorry, something went wrong.
No branches or pull requests
Uglify version (
uglifyjs -V
)JavaScript input
In case of using
for await...of
, it occurs errorThe
uglifyjs
CLI command executed orminify()
options used.JavaScript output or error produced.
The text was updated successfully, but these errors were encountered: