nitro
nitro copied to clipboard
Support import.meta.glob
Describe the feature
Following https://github.com/nuxt/nuxt/issues/22106, I would like to have import.meta.glob("./migrations/*.ts")
available in Nitro apps, in particular in Nuxt server handlers.
As I elaborated in #1670, this should be lazy by default, repeating how Vite works. An option to pass { eager: true }
(same as in Vite) would be nice but not critical, as this could be achieved in user-land.
Additional information
- [ ] Would you be willing to help implement this feature?