import.meta.glob
complains about template strings even if they're static
#9349
Labels
p2-edge-case
Bug, but has workaround or limited in scope (priority)
Describe the bug
Back tick strings in
import.meta.glob()
raise
even when not used as templates.
Reproduction
https://stackblitz.com/edit/vitejs-vite-vxmqui?file=counter.js
System Info
System: OS: macOS 12.4 CPU: (10) arm64 Apple M1 Pro Memory: 92.72 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.6.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 8.13.2 - /opt/homebrew/bin/npm Browsers: Brave Browser: 103.1.41.100 Safari: 15.5 npmPackages: vite: ^3.0.2 => 3.0.2
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: