svelte-datepicker
svelte-datepicker copied to clipboard
Svelte dev dependency optimization fails
Steps taken:
- npm install --save @beyonk/svelte-datepicker
- npm run dev
Result:
Environment: svelte - 3.42.3 node - 14.16.0 npm - 7.24.0
Note
- npm run build works
- If you have the dev server running and then install the package, there is no issue. It's only upon starting the dev server that the issue appears.
I've also tried these vite.config adjustments with no success:
ssr: { noExternal: true, },
and optimizeDeps: { include: ['dayjs'] }