Merge pull request #90 from nnic/main
Updated SvelteKit setup instructions
This commit is contained in:
14
README.md
14
README.md
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user