fix(stacks-svelte): pre-bundle dayjs plugins with .js extension to fix CI test flake by dancormier · Pull Request #2224 · StackExchange/Stacks

@dancormier @claude

…timizeDeps

stacks-utils imports dayjs/plugin/relativeTime.js and updateLocale.js
with explicit .js extensions. Vite's optimizeDeps.include entries without
.js don't match these, so Vite discovers them as new deps mid-test run,
triggers re-optimization + reload, and kills in-flight test module fetches
(manifesting as a Navigation test import failure in CI).

CI always has a cold Vite cache; locally the .js variants get cached on the
first run, masking the issue.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>