Skip to content

Commit c583b12

Browse files
committed
fix: remove comment and update readme
1 parent d5e4d4e commit c583b12

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,24 @@ A small date picker built with Svelte 3. Demo available here: [view docs and exa
1010
npm i -D svelte-calendar
1111
```
1212

13+
## Usage within svelte-kit project
14+
15+
When using this component within a svelte-kit application it is necessary to add its two dependencies (`just-throttle` and `dayjs`) to the `config.kit.vite.optimizeDeps.include` array in `svelte.config.js`. Eg: your config should include the following:
16+
17+
```js
18+
const config = {
19+
kit: {
20+
vite: {
21+
optimizeDeps: {
22+
include: ['just-throttle', 'dayjs']
23+
}
24+
}
25+
}
26+
};
27+
28+
export default config;
29+
```
30+
1331
## Features
1432

1533
- Day, Month & Year pickers

svelte.config.js

-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ const config = {
2222
assets: 'docs',
2323
fallback: null
2424
})
25-
// package: {
26-
// emitTypes: false
27-
// }
2825
},
2926
preprocess: [
3027
replace([

0 commit comments

Comments
 (0)