[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
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
Used Package Manager
npm
Logs
Validations