Skip to content

doc: add synchronous hooks proposal#198

Merged
joyeecheung merged 10 commits into
nodejs:mainfrom
joyeecheung:sync-hooks
Nov 5, 2024
Merged

doc: add synchronous hooks proposal#198
joyeecheung merged 10 commits into
nodejs:mainfrom
joyeecheung:sync-hooks

Conversation

@joyeecheung
Copy link
Copy Markdown
Member

cc @nodejs/loaders

Spinned from nodejs/node#52219 - I ended up writing it down as a proposal here, because there are some high-level questions and re-design ideas after I looked into existing usages of CJS monkey-patching. While resolve and load hooks work well enough for some cases, it also seems common in the wild to just override specifier -> module mapping directly, so I sketched out some higher level hooks as alternatives here as well.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.