-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Closed
Labels
contribution welcomep3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
Describe the bug
First reported in sveltejs/kit#7671.
According to @gtm-nayan
... this is a Vite bug because instead of transforming and replacing just the
import.meta.glob('./*')part with an object, it's looking at the whole expression generated by Svelte to coerce the object to a string.
Reproduction
https://stackblitz.com/edit/vitejs-vite-hzfakv?file=package.json,src%2FApp.svelte
Steps to reproduce
No response
System Info
StackBlitzUsed Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- 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.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
contribution welcomep3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)