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: Mixed module types within app/module; gradual migration from CommonJS to ESM #99

Closed
@GeoffreyBooth

Description

@GeoffreyBooth

I have a large application or module and want to be able to gradually migrate from CommonJS to ESM, one file at a time, without needing to refactor the entire codebase all at once.

So ESM-syntax files could import CommonJS files and CommonJS files could require ESM files, within the same app or module.

Use cases 8, 39.

Note: This was meant to go along with the feature in the features doc called “bidirectional interoperability” but it seems to also cover “per-module mode” (and has the same use cases) so I think it’s just one feature. Happy to amend if I’m missing something.

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