Commit d7e5a3a
committed
Bugfix: Force
`isomorphic-git`'s `exports."."` only declares a CJS entry, which `require`s Node's `crypto`. Vite 7 (Rollup) was loose enough to pick the `module` field; Vite 8 (Rolldown) follows `exports` strictly and bundled the CJS path, crashing the worker with `o.createHash is not a function`. Alias the package to its `index.js` (pure-JS SHA-1, no Node `crypto`).
Also turn on production sourcemaps for the app and the worker. The maps are external `.map` files — browsers only fetch them when DevTools is open, so there's no cost for regular visitors and prod stack traces become readable.isomorphic-git ESM entry + ship sourcemaps1 parent e14caf3 commit d7e5a3a
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
10 | 22 | | |
11 | 23 | | |
12 | 24 | | |
| |||
0 commit comments