6eDesign / svelte-calendar

A lightweight datepicker with neat animations and a unique UX.
https://6edesign.github.io/svelte-calendar/
MIT License
543 stars 90 forks source link

dependencies should be included in the vite.config.js in sveltekit #171

Open GauravDhanraja opened 5 months ago

GauravDhanraja commented 5 months ago

vite: { optimizeDeps: { include: ['just-throttle', 'dayjs'] } }

I had put this dependency inside kite: {} in svelte.config.js which gave me errors.

Found the solution from stack overflow

I needed to put them inside export default defineConfig({ }) in vite.config.js file like this,

export default defineConfig({ plugins: [sveltekit()], vite: { optimizeDeps: { include: ['just-throttle', 'dayjs'] } } });