Skip to content

Consider porting .mjs files to .js with "type": "module" #1850

@melvincarvalho

Description

@melvincarvalho

The v6 migration converted all files from CommonJS to ESM using the .mjs extension. The .mjs extension was a transitional mechanism — the intended long-term approach is "type": "module" in package.json, which makes plain .js files ES modules by default.

This is now the ecosystem convention (Node.js docs, major frameworks, etc.). Keeping .mjs signals an incomplete migration.

The change is mechanical — rename all .mjs.js, add "type": "module" to package.json, update any import paths — but worth doing for consistency with modern Node.js conventions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions