more explicit way of adding modules
Open
@pi0 is already working on this.
Since Aug 23, 2024.
breaking change
v2
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 899
- Avg merge
- 2d 24m
- Merged PRs (30d)
- 40
Description
Background: some thoughts here.
Nitro modules should be explicitly imported and configured in the user config. Pretty much how a rollup or vite plugin can be configured.
- avoid auto scanning
server/modulesdirectory (can be still used by users as convention, but needs explicit import) - remove support of passing modules as string in config
While this is a breaking change for v3, we never publicly documented modules feature and initial support was also added as an advanced feature. This pattern is also tried on nitro-cloudflare-dev module and proven to work nice.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.