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
thescientist13
changed the title
multiple consecutive new URL + import.meta.url usages in same file only bundles the last occurence
multiple usages of new URL + import.meta.url in same file only bundles the last occurrence
Feb 8, 2025
What happened?
When I have a component with multiple usages of
new URL
+import.meta.url
in the same file, it looks like only the last instance is getting bundled.In the browser, we can see the
![Image](https://private-user-images.githubusercontent.com/895923/411263260-576a5b95-98d8-4025-9756-f3728a86230c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjgxMzYsIm5iZiI6MTczOTE2NzgzNiwicGF0aCI6Ii84OTU5MjMvNDExMjYzMjYwLTU3NmE1Yjk1LTk4ZDgtNDAyNS05NzU2LWYzNzI4YTg2MjMwYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwNjEwMzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNGU1YmE1NjdkMjczM2E3NTkwYjYxOWZiMjMwZmYxMWFlZTg3NjYzMTAzNTk2ZGVkNTQ1NDNlMTc4ZThjMmM1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Wo7eGalizDKZ_elh-KQYe2M7Nf-Jl4q1iF-l6_dAHoc)
src
attribute of the first<img>
tag has an unbundled path, but the second one isSteps to reproduce
new URL
+import.meta.url
in the same filebuild
commandEnvironment
Additional Context
N / A
The text was updated successfully, but these errors were encountered: