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.

Stabilizing the resolver #451

Closed
Closed
@guybedford

Description

@guybedford

I'd like to suggest that we mark a new phase target for resolver stability.

In particular the features here are package self-resolution and dual mode support (currently via conditional exports), which we agreed to support by end of Jan in some form.

As per #450, for 12.x stability I think it is important that our changes to the CommonJS resolver can be included in 12.x as soon as possible, since the next release deadline would be for Jan.

The concern is that users shipping "exports" for 13.x users may find the code uses "main" fine in 12.x, but then when we backport modules to 12.x in April the "exports" resolution kicks in on that branch and there may be breakage. To avoid this scenario we would ideally be able to ship "exports" from Jan already now on 12.x so that users shipping "exports" code for 13.x immediately can see the 12.x compatibility of their code, making it a compatibility issue of the act of shipping itself. The sweet spot we are in is that no one has shipped "exports" yet, so we can still define what breakage means. But once enough time passes we no longer have that luxury.

Metadata

Metadata

Assignees

No one assigned

    Labels

    modules-agendaTo be discussed in a meeting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions