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
{{ message }}
Repository navigation
incorrect asset path replacement when the path is passed to typeof and using relative base #22304
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.
Submitted #22330 - the fix expands the rewrite range to include the surrounding matching quotes and emits a parenthesized (""+runtime+"") so a leading typeof (or other unary operator) binds across the whole concatenated expression. Same change applied to the publicAssetUrlRE branch.
Activity
mvanhorn commentedon Apr 26, 2026
Submitted #22330 - the fix expands the rewrite range to include the surrounding matching quotes and emits a parenthesized
(""+runtime+"")so a leadingtypeof(or other unary operator) binds across the whole concatenated expression. Same change applied to thepublicAssetUrlREbranch.sapphi-red commentedon Aug 21, 2026
Fixed in #22888, #22894.