Skip to content

Commit

Permalink
fix: remove comment and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
6eDesign committed Sep 19, 2021
1 parent d5e4d4e commit c583b12
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,24 @@ A small date picker built with Svelte 3. Demo available here: [view docs and exa
npm i -D svelte-calendar
```

## Usage within svelte-kit project

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:

```js
const config = {
kit: {
vite: {
optimizeDeps: {
include: ['just-throttle', 'dayjs']
}
}
}
};

export default config;
```

## Features

- Day, Month & Year pickers
Expand Down
3 changes: 0 additions & 3 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ const config = {
assets: 'docs',
fallback: null
})
// package: {
// emitTypes: false
// }
},
preprocess: [
replace([
Expand Down

0 comments on commit c583b12

Please sign in to comment.