-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
--format=iife
option erases variables defined multiple times
#2098
Comments
I found #2080. It seems to same problem. |
melpon
added a commit
to melpon/legacy-modes
that referenced
this issue
Mar 12, 2022
blockKeywords is defined twice. When using a script converted with esbuild, the first blockKeywords is deleted due to issue evanw/esbuild#2098. To address this issue, rename the first blockKeywords definition to blockKeywordsStr.
marijnh
pushed a commit
to codemirror/legacy-modes
that referenced
this issue
Mar 13, 2022
blockKeywords is defined twice. When using a script converted with esbuild, the first blockKeywords is deleted due to issue evanw/esbuild#2098. To address this issue, rename the first blockKeywords definition to blockKeywordsStr.
JRaspass
added a commit
to code-golf/code-golf
that referenced
this issue
Mar 14, 2022
Looks like the cause of the breakage was a duplicate var in codemirror (fixed upstream, not yet released) and a bug in esbuild (fixed in this bump) - evanw/esbuild#2098
zhusjfaker
pushed a commit
to speedy-js/esbuild
that referenced
this issue
Mar 28, 2022
hardfist
pushed a commit
to speedy-js/esbuild
that referenced
this issue
Mar 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
test.js:
Output from the
esbuild --format=iife test.js
command:The former program outputs
10
, while the latter outputsundefined
. Is this behavior intended?The text was updated successfully, but these errors were encountered: