v0.22.1 — externalize use-sync-external-store shim chain
Patch fix for the bundler regression in 0.22.0.
Fixed
use-sync-external-storeshim chain is now properly external. 0.22.0 inlined the CJSuse-sync-external-store-shim.production.jsintodist/index.es.js. Consumer Vite builds (dmnctech) refused the module — duplicated React-export wrapping inside an ESM bundle confuses strict ESM evaluation. The shim is a transitive dep of react-aria / react-stately.vite.config.tsexternal matcher now usesid.includes('use-sync-external-store')to catch both bare imports and Rolldown-resolved subpaths. Plus UMD globals: each subpath maps to the hostReactglobal (React 18+ exposesuseSyncExternalStorenatively).
Verified
dist/index.es.js: 349KB → 345KB. Single remaining reference is a single import statement deferred to the consumer's resolver.- 1028/1028 tests pass.
Full diff: v0.22.0...v0.22.1