Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Feature: Package encapsulation #111

@GeoffreyBooth

Description

@GeoffreyBooth

ESM should allow deep (non-main) inter-package imports via named entrypoints, in order to allow safe refactoring of published files that are both considered implementation details and are not exposed via the package.json main property.

This is already possible in CommonJS; the desire is to ensure that the same level of safeguarding and privacy can be achieved by future Node packages that want this and opt into this feature.
See also https://github.com/mikesamuel/tc39-module-keys

Use case 25.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions