idiomorph icon indicating copy to clipboard operation
idiomorph copied to clipboard

Can we remove the CommonJS distribution target?

Open botandrose opened this issue 10 months ago • 1 comments

Now that Node.js supports ESM, can we remove the CommonJS distribution target and only release for ESM and

botandrose avatar Feb 21 '25 00:02 botandrose

ESM support was first stabilized in Node.js 12.0.0 (April 23, 2019), and became a first-class recommendation in Node.js 16.0.0 (April 20, 2021), both of which are now EOL. So I think its safe to proceed with this.

We'll start by removing support for CJS in the next v0.8.0 release, and see if anyone complains.

botandrose avatar Feb 26 '25 21:02 botandrose