nodejs / nodejs/node

module.registerHooks() tracking issue

Open
#56,241 8 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

loaders module
Dominant language
JavaScript
Stars
122k
Forks
37.3k
Avg merge
4d 2h
Merged PRs (30d)
283

Description

Moved to https://github.com/nodejs/node/issues/62720

Nice to have:

  • Advocating it to popular npm packages doing CJS monkey-patching to reduce the overall dependency of CJS loader internals in the ecosystem
  • Create a polyfill of module.register() built on top of module.registerHooks(): WIP in https://github.com/joyeecheung/module-register-ponyfill

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 the successor issue https://github.com/nodejs/node/issues/62720 and the linked Node.js loaders proposals, especially the link and startGraph hooks. This tracking issue has moved elsewhere and lists unresolved design work, so its completion criteria are not defined here.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.