Alias prefixed with #
doesn't work with import.meta.glob
#17614
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
I try to use
import.meta.glob
with an alias prefixed with#
but it doesn't work:Prefixed with
@
or without prefixes - works fine:Reproduction
https://stackblitz.com/edit/vitejs-vite-sx14yb?file=main.js
Steps to reproduce
System Info
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 18.20.3 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: vite: ^5.3.2 => 5.3.3
Used Package Manager
npm
Logs
glob #icons {} glob @icons {/assets/icons/vite.svg: Module}
Validations
The text was updated successfully, but these errors were encountered: