-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Regression in v0.14.x #2080
Comments
Looks like esbuild drops one // input
var A = {} // this is pure
A.x = 1
var A = {}
A.y = 2
// output
A.x = 1;
var A = {};
A.y = 2; Now question: is However, if you manually give it some // input
var A = {} // this is pure
A.x = 1
var A = console.log(1) || {} // not pure
A.y = 2
var A = A || {} // pure again
A.y = 3
var A = {} // keep last one
A.y = 4
// output
A.x = 1;
var A = console.log(1) || {};
A.y = 2;
A.y = 3;
var A = {};
A.y = 4; |
There are two variable declarations in gradient-parser. https://github.com/rafaelcaricio/gradient-parser/blob/92b6e8011e02e3682064fd2aea20da6becf3347e/build/node.js#L5 |
- fix evanw#2080 regression introduced in 4fa3d7a
- fix evanw#2080 regression introduced in 4fa3d7a
- fix evanw#2080 regression introduced in 4fa3d7a
- fix evanw#2080 regression introduced in 4fa3d7a
Hi,
thank you for great project it really moved community forward. I caught bug in v0.14 (using vite)
If it is was reported sorry i did not found it.
there is repro repo https://github.com/btd/esbuild-bug
The text was updated successfully, but these errors were encountered: