You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. This is definitely an esbuild bug, and is a recent regression due to lack of test coverage for this edge case. I'll fix this in the next release.
Prettier v3 formats some code like this:
to
But with the latter syntax, esbuild gives this warning:
If this is expected behavior, let me know. I'll create an issue at prettier.
Reproduction
https://esbuild.github.io/try/#dAAwLjE4LjE1AC0tbG9hZGVyPWNzcwA6aXMoCiAgICAudnAtZXh0ZXJuYWwtbGluay1pY29uLAogICAgLnZwLWRvYyBhW2hyZWYqPSI6L1wvIl0sCiAgICAudnAtZG9jIGFbdGFyZ2V0PSJfYmxhbmsiXQogICk6bm90KC5uby1pY29uKSB7CiAgY29sb3I6IHJlZDsKfQ
Related issues
vitejs/vite#13914
The text was updated successfully, but these errors were encountered: