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
Repro:
if (something) { let x = foo(something) // console.log(x) }
Build with:
esbuild --minify --outfile=test.out.js test.js
Expected output:
if(something){let b=foo(something);}
Actual output:
if(something)let b=foo(something);
Running this in Chrome js console yields this error:
Uncaught SyntaxError: Lexical declaration cannot appear in a single-statement context
Alternatively, the “let” is reduced to nothing (since it's unused) in the expected case:
if(something)foo(something);
The text was updated successfully, but these errors were encountered:
Thanks for the report! Will fix.
Sorry, something went wrong.
28dcbc4
🎉
use filename instead of path
61e372b
fixes: evanw#1 Signed-off-by: Erik Jan de Wit <[email protected]>
No branches or pull requests
Repro:
Build with:
Expected output:
Actual output:
Running this in Chrome js console yields this error:
Alternatively, the “let” is reduced to nothing (since it's unused) in the expected case:
The text was updated successfully, but these errors were encountered: