Updated SvelteKit setup instructions

This commit is contained in:
Nic Masters
2022-01-23 11:05:28 +00:00
committed by GitHub
parent c70916b938
commit 663d9b9400

View File

@@ -45,7 +45,19 @@ yarn add svelte-carousel -D
npm install svelte-carousel -D
```
2. Import and use it:
2. Extend `kit` in `svelte.config.js` to include the `vite` property
```js
const config = {
// existing props
kit: {
// existing props
vite: { optimizeDeps: { include: ['lodash.get', 'lodash.isequal', 'lodash.clonedeep'] } }
}
}
```
3. Import and use it:
```jsx