From 663d9b9400e242adf1a963ca748bb18fad2243e5 Mon Sep 17 00:00:00 2001 From: Nic Masters Date: Sun, 23 Jan 2022 11:05:28 +0000 Subject: [PATCH] Updated SvelteKit setup instructions --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0c95ea5..9a4b362 100644 --- a/README.md +++ b/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