Use custom query on a dynamic import
AaronNBrock opened this issue · comments
Is it possible to use Glob Import's Custom Queries with a dynamic import?
Something akin to:
import(`../../cat01.jpg?run`, {
query: { some: 'query' }
})
This would be a question for Vite. We don't do anything special with regards to imports, etc.
I just added import.meta.glob
to the docs and examples and verified that it works with query
. I'm not exactly sure what you're trying to do, but at the very least you could import.meta.glob
a single image with query
(assuming it's a hardcoded image as in the issue description and not held in a variable)