feature request: support internal loaders #49473
Copy link
Copy link
Closed
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.loadersIssues and PRs related to ES module loaders.Issues and PRs related to ES module loaders.
Description
Activity
- addedfeature requestIssues requesting new Node.js features.Issues requesting new Node.js features.loadersIssues and PRs related to ES module loaders.Issues and PRs related to ES module loaders.
on Sep 3, 2023 hello I would like to take care of this
Metadata
Metadata
Assignees
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.loadersIssues and PRs related to ES module loaders.Issues and PRs related to ES module loaders.
What is the problem this feature will solve?
It may be desirable for Node to have its own internal loaders that are not exposed to userland as part of the public API. One example is supporting module mocking in core. A loader is the ideal way to support this, but currently trying to use an internal module as a loader fails with an error.
What is the feature you are proposing to solve the problem?
I am proposing supporting Node core internal modules as loaders.
What alternatives have you considered?
Exposing all loaders as part of the public API.