Skip to content
New issue

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

const become var and let when using --bundle #3182

Closed
stackinspector opened this issue Jun 20, 2023 · 1 comment
Closed

const become var and let when using --bundle #3182

stackinspector opened this issue Jun 20, 2023 · 1 comment

Comments

@stackinspector
Copy link

> echo 'const a = document.getElementById("a"); doSomethingWith(a); (() => { const b = document.getElementById("b"); doSomethingWith(b); })();' | esbuild --minify-whitespace --minify-syntax --format=iife --target=esnext --bundle
(()=>{var a=document.getElementById("a");doSomethingWith(a);(()=>{let b=document.getElementById("b");doSomethingWith(b)})();})();
> echo 'const a = document.getElementById("a"); doSomethingWith(a); (() => { const b = document.getElementById("b"); doSomethingWith(b); })();' | esbuild --minify-whitespace --minify-syntax --format=iife --target=esnext         
(()=>{const a=document.getElementById("a");doSomethingWith(a);(()=>{const b=document.getElementById("b");doSomethingWith(b)})();})();
@stackinspector
Copy link
Author

Seems duplicate with #1301.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant