-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
glob import doesn't search under node_modules #6370
Comments
duplicate of #1903 |
OK, I will investigate further and submit a PR if possible |
Would you like to provide a minimal reproduction to help us reproduce it better? |
https://stackblitz.com/edit/vite-ynvvon |
I think this PR #6056 fixes this issue. |
seems that the problem is still there, on [email protected] |
Describe the bug
A lot of npm packages support loading different locales on the fly(like dayjs)
But when do
import.meta.glob('/node_modules/some-package/locale/*.js
will return empty objectSo now I need to move all the locale js outside node_modules, which causes a lot of lining issue
It seems like someone actively disabled it
8b3d0ea
But I don't think it's the intended behaviour, ref: #1985 (comment)
Doc also doesn't specify this behaviour
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: