Support import.meta.glob
without parent path
#16130
Labels
duplicate
This issue or pull request already exists
import.meta.glob
without parent path
#16130
Description
When using
import.meta.glob
:Did you see that, you have to write
"/src/assets/icons/"
twice. When this path is longer, it becomes more troublesome.We known that we can't use variable in it, like this won't work:
Suggested solution
How about add a new option, to match the asterisk in the result object key. For example:
This will compile to:
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: