Skip to content

Commit

Permalink
feat: add svelte export condition (#22)
Browse files Browse the repository at this point in the history
Adds an export condition to replace the deprecated "svelte" field. The "svelte" field will stop working at some point in the future with `vite-plugin-svelte`.

https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition
  • Loading branch information
ryanhinkel authored May 28, 2024
1 parent 2f875b5 commit a1b3ccf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
"dist",
"types"
],
"exports": {
".": {
"types": "./types/index.d.ts",
"svelte": "./src/index.js",
"default": "./dist/svelte-infinite-loading.js"
}
},
"keywords": [
"svelte",
"infinite",
Expand Down

0 comments on commit a1b3ccf

Please sign in to comment.