Commit 051f747
fix(stacks-svelte): pre-bundle dayjs plugins with .js extension to fix CI test flake (#2224)
* fix(stacks-svelte): pre-bundle dayjs plugins with .js extension in optimizeDeps
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>
* chore: trigger CI tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* changeset: patch for stacks-svelte dayjs optimizeDeps fix
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b58a0aa commit 051f747
File tree
2 files changed
+7
-0
lines changed- .changeset
- packages/stacks-svelte
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
0 commit comments