Commit 6475016
Externalise use-sync-external-store in petrinaut lib build
@tanstack/react-form → @tanstack/react-store pulls in the pure-CJS
use-sync-external-store, whose `require("react")` calls were surviving
rolldown's lib build (react is external) as a runtime require helper
that throws in the browser. Externalising use-sync-external-store and
its subpaths pushes the CJS→ESM interop to the consumer's bundler,
which handles it via pre-bundling.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6d3b19c commit 6475016
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
0 commit comments