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
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
When transforming https://unpkg.com/browse/@headlessui/[email protected]/dist/components/transitions/transition.js in an application (see e.g. nuxt/ui#2971), it will lead to invalid javascript code due an extraneous (and syntactically wrong
;
). This is based on #18748 (comment)Seems like there is a collision when the code is minified, a
;
is inserted and the(0, ...)
is happening afterwards.Reproduction
https://github.com/TheAlexLichter/vite/tree/fix/syntax-error-ssr
Steps to reproduce
I've created a failing test (for an upcoming PR) that highlights the broken behavior.
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: