The previous session added flowbite-svelte to optimizeDeps.exclude to fix an esbuild TypeScript syntax error with 1.33.1. But tailwindcss 4.3+ is now stricter: when a style virtual module fails to load (which happens when the package is excluded from pre-bundling), tailwindcss receives the raw .svelte file content — including TypeScript — and rejects it with "Invalid declaration: Side". With flowbite-svelte 1.31.0, only Drawer and Modal are imported. Neither their dist files nor their transitive deps have TypeScript optional-param syntax (?: ) that would cause esbuild to fail. Safe to remove the exclusion. Updated the comment to explain when/why to re-add it if upgrading. Dev server: clean start, HTTP 200 ✔ | npm run build ✔ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1.7 KiB
1.7 KiB