Commit a707e86
committed
Pre-bundle late-discovered deps so the dev worker never program-reloads mid-suite
vite was discovering effect/Match, effect/Predicate, and js-yaml during test
runs instead of at boot, forcing a re-optimize and full program reload on
both the client and SSR (workerd) environments. Each reload strands the
previous worker program's heap inside workerd, and a handful of them exhausts
its heap limit and kills the dev server mid-shard. Adding these to
optimizeDeps.include (client) and environments.ssr.optimizeDeps.include (SSR)
in apps/cloud and apps/host-selfhost's vite configs makes vite bundle them at
boot instead, so no mid-run discovery happens.
js-yaml is a transitive dependency via @executor-js/plugin-openapi that bun's
isolated install doesn't hoist into either app's node_modules, so a bare
"js-yaml" specifier silently fails to resolve in optimizeDeps.include. Used
vite's "<pkg> > <dep>" nested resolution syntax to resolve it from the
owning package instead.1 parent 8cc1e3f commit a707e86
2 files changed
Lines changed: 65 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
68 | 94 | | |
69 | 95 | | |
70 | 96 | | |
| |||
81 | 107 | | |
82 | 108 | | |
83 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
84 | 126 | | |
85 | 127 | | |
86 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
193 | 216 | | |
194 | 217 | | |
195 | 218 | | |
| |||
0 commit comments