Skip to content

[3.x] Drop CJS builds in favor of ESM-only output#2873

Merged
pascalbaljet merged 2 commits into
3.xfrom
drop-cjs-builds
Feb 10, 2026
Merged

[3.x] Drop CJS builds in favor of ESM-only output#2873
pascalbaljet merged 2 commits into
3.xfrom
drop-cjs-builds

Conversation

@pascalbaljet
Copy link
Copy Markdown
Member

This PR removes CommonJS builds from all packages, shipping ESM exclusively. The Svelte adapter was already ESM-only, and this aligns the rest of the packages (core, react, vue3, vite) to match.

  • Removed CJS build entries from build.js in core, react, vue3, and vite
  • Removed require conditions from exports in each package.json
  • Renamed output files from dist/index.esm.js to dist/index.js (no need for the .esm. suffix with a single format)

@pascalbaljet pascalbaljet added the next major release We need to consider this for the next major release, perhaps because of a breaking change label Feb 10, 2026
@pascalbaljet pascalbaljet merged commit f1d2c71 into 3.x Feb 10, 2026
@pascalbaljet pascalbaljet deleted the drop-cjs-builds branch February 10, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

next major release We need to consider this for the next major release, perhaps because of a breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant