fix(build): roll back broken packages, pin tailwindcss 4.3.1 only
npm update (c4d4d2bde) silently upgraded @sveltejs/kit (2.53→2.66), rollup (4.59→4.62), and svelte (5.53→5.56) together, which caused the SSR production build to fail: rollup received raw .svelte files without vite-plugin-svelte transforming them (non-deterministic, race condition). Fix: restore stable package-lock from468ed61b3, then selectively update only tailwindcss and its ecosystem (4.2.1→4.3.1) to resolve DEP0205. Align @tailwindcss/vite constraint to ^4.3.0 to match. Also adds flowbite-svelte to optimizeDeps.exclude — it ships TypeScript optional-param syntax in compiled .svelte dist files that esbuild rejects during dependency pre-bundling (will matter when flowbite-svelte updates). Build tested: npm run build ✔ | svelte-check: 0 errors 0 warnings ✔ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2354
package-lock.json
generated
2354
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user