astro/.changeset/disable-asset-with-query.md
Barthélémy Ledoux 1947ef7a99
fix: no asset plugin w/ img is imported with query (#8353)
* fix: no asset plugin w/ img is imported with query

* add changeset

* add test for the new feature

* remove exp

* use removeQueryString instead of `includes('?')`

it's more explicit

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-09-06 15:01:01 +02:00

281 B

astro
patch

Astro will now skip asset optimization when there is a query in the import. Instead, it will let vite deal with it using plugins.

<script>
// This will not return an optimized asset
import Component from './Component.vue?component'
</script>