Open Barbapapazes opened 1 month ago
nitropack-nightly@3.0.0-beta-28665895.e727afda-nitro-nightly-mirror
modules
log/index.ts
log/runtime/routes/log.ts
You'll see that the return will have both the index.ts file which define the module and the log.ts file which define an event handler. This makes the local modules system unusable.
index.ts
log.ts
Like Nuxt, this could be nice to only scan two patters (https://nuxt.com/docs/guide/directory-structure/modules#:~:text=The%20auto%2Dregistered,modules/*.ts)
The auto-registered files patterns are: modules/*/index.ts modules/*.ts
The auto-registered files patterns are:
No response
Environment
nitropack-nightly@3.0.0-beta-28665895.e727afda-nitro-nightly-mirror
Reproduction
modules
log/index.ts
andlog/runtime/routes/log.ts
Describe the bug
You'll see that the return will have both the
index.ts
file which define the module and thelog.ts
file which define an event handler. This makes the local modules system unusable.Like Nuxt, this could be nice to only scan two patters (https://nuxt.com/docs/guide/directory-structure/modules#:~:text=The%20auto%2Dregistered,modules/*.ts)
Additional context
No response
Logs
No response