mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
main.ts removes storybook:optimize-deps-plugin and there are no HTML
files under the Vite root, so Vite's startup scan finds nothing and
discovers every dependency on first import. Each discovery re-runs the
optimizer and broadcasts a full reload to every page in both workers,
which aborts tests mid-import ("Execution context was destroyed",
"Failed to fetch dynamically imported module") and is why the app
component suite is flaky on every CI run.
optimizeDeps.entries now covers the stories, the *.worker.ts files (the
scan does not follow new Worker(new URL(...))) and the modules component
tests load by URL, read from the ./ and ../ literals in the specs so a
new spec needs no config change. Based on the approach in #55632.
On top of that, preview.tsx is an entry and the Storybook preview
runtime is included. Without them the preview's addons and the runtime
are still found late, and one reload remains whenever the first browser
request arrives after the startup optimize has finished, which is the
usual case because the webServer is ready once the manager page loads.
The webServer's stdout is now piped, so any "optimized dependencies
changed. reloading" line shows up in CI logs instead of being dropped.
|
||
|---|---|---|
| .. | ||
| ai | ||
| app | ||
| cli | ||
| client | ||
| codemode | ||
| console | ||
| containers | ||
| core | ||
| desktop | ||
| effect-drizzle-sqlite | ||
| enterprise | ||
| function | ||
| gui-extensions | ||
| http-recorder | ||
| httpapi-codegen | ||
| identity | ||
| latex | ||
| merman | ||
| plugin | ||
| plugin-browser | ||
| plugins | ||
| posts | ||
| protocol | ||
| schema | ||
| script | ||
| sdk | ||
| server | ||
| session-ui | ||
| simulation | ||
| stats | ||
| storybook | ||
| theme | ||
| tui | ||
| ui | ||
| util | ||
| web | ||