nitro icon indicating copy to clipboard operation
nitro copied to clipboard

Support import.meta.glob

Open IlyaSemenov opened this issue 10 months ago • 7 comments

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?

IlyaSemenov avatar Aug 30 '23 02:08 IlyaSemenov