You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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 couldrequire
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.
The text was updated successfully, but these errors were encountered: