Skip to content

CJS → ESM #341

@JakobJingleheimer

Description

@JakobJingleheimer

Technical Design

Create a wrapper migration to orchestrate individual sub-migrations (eg inline require()s → await import() or import.sync() depending on parent context being sync or async).

This wrapper should handle:

  1. Running individual API migrations
  2. Update files using CJS-specific extension (.cjs.mjs, etc).
  3. Update package.json ("type": "commonjs""type": "module", etc).

I think we can release a 0.1.0 version with a subset:


Important

Each sub-task should have its own PR

Sub-issues

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

📋 Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions