Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GauravDhanraja opened this issue Jun 12, 2024 · 0 comments
Open

Comments

@GauravDhanraja
Copy link

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'] } } });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant