nitrojs / nitrojs/nitro

Make plugins async

Open
#915 10 comments 41 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

breaking change discussion enhancement v2
Dominant language
TypeScript
Stars
11.2k
Forks
899
Avg merge
2d 24m
Merged PRs (30d)
40

Description

For the benefit of bootstrapping plugins it is usefull to make plugins load async.

https://github.com/unjs/nitro/blob/ed3a48026e8a27ecfb86e406ba39bdeb418f8573/src/runtime/app.ts#L89-L91

Can someone explain to me if there is a good reason to load plugins synchronously?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/runtime/app.ts at lines 89–91 and trace how plugins are bootstrapped and loaded. Read the discussion for the rationale behind synchronous loading, then identify the required asynchronous behavior and its acceptance criteria; the issue does not name tests or a specific definition of done.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.