Skip to content

Commit ddb4b02

Browse files
authored
refactor!: ship ESM-only builds (#2544)
1 parent 8cbc52d commit ddb4b02

29 files changed

Lines changed: 113 additions & 17786 deletions

.changeset/esm-only.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@react-spring/web': major
3+
---
4+
5+
refactor!: ship ESM-only builds
6+
7+
Every package now publishes a single modern ESM bundle (`dist/<name>.modern.mjs`) and drops its CommonJS output, the Webpack 4 `legacy-esm` fallback, and the orphaned pre-compiled dev/prod variants.
8+
9+
ESM consumers (Vite, webpack 5, Next, esbuild, Bun, Deno, native Node ESM) are unaffected. CommonJS consumers must migrate to ESM or run on Node ≥22.12, where `require()` of an ESM package is supported. Webpack 4 is no longer supported.

.github/publish-ci/cra5/.gitignore

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/publish-ci/cra5/README.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)