Skip to content

feature request: support internal loaders #49473

@cjihrig

Description

@cjihrig

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.loadersIssues and PRs related to ES module loaders

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions