Skip to content

Let's Say Goodbye to CommonJS (CJS) #55240

Closed Answered by RedYetiDev
babakfp asked this question in General
Discussion options

You must be logged in to vote

Stop the idea of being backward compatible. Even browsers aren't always backward compatible. They aren't even compatible with each other.

While browsers aren't always backward compatible, programming environments that have established ecosystems depend on it. Node.js has a vast array of libraries and projects built using CJS. Forcing developers to rewrite or abandon countless existing projects would create a significant burden.

Just hard delete it in a new major version.
Developers needed to add the stupid { "type": "module" } option.

Node.js is offering a path to transition, rather than abruptly forcing everyone to switch to ESM. The coexistence of CJS and ESM lets developers migrate…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by RedYetiDev

This comment was marked as off-topic.

@RedYetiDev
Comment options

@babakfp

This comment was marked as off-topic.

@kravetsone

This comment was marked as off-topic.

@RedYetiDev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Issues and PRs that are invalid.
3 participants