Skip to content
This repository has been 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 opened this issue May 19, 2018 · 0 comments
Labels

Comments

@GeoffreyBooth
Copy link
Member

GeoffreyBooth commented May 19, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant