Skip to content

Discussion: An ESM-first Node #61611

@parrotsmod

Description

@parrotsmod

I know Node.js relies on CJS (src/node.cc, lib/internal/modules/cjs/loader.js, etc.) a lot but i think it might be useful to have a branch (not for merging into main) named no-commonjs where CommonJS is removed and Node is ESM-only. Could be a playground to test ESM-only workflows.

Node's main branch would stay untouched, so CJS compatibility would be kept.
If you'd like, we could make a fork instead based on Node.js 22.19.

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