transformAssetUrls should transform to imports with ?url
query param set
#544
Labels
p2-has-workaround 🍰
Bug, but has workaround (priority)
?url
query param set
#544
Related plugins
plugin-vue
plugin-vue-jsx
Describe the bug
Foo.vue:
On dev this shows:
On build this shows:
Which is wrong because it's being transformed to something like this:
While it should be transformed to this: (depending on whether any conflicting query parameter is already set)
So that src remains
fetch
-able.On build it should something like this (depending on build.assetsInlineLimit):
Downstream issue - vuejs/vitepress#4619 (reply in thread)
Reproduction
https://stackblitz.com/edit/vitejs-vite-khtsiaws?file=src/App.vue&terminal=dev
Steps to reproduce
Run
vite build && vite preview
in above playground.System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: