From a1b3ccf2b661b99c2c3bc9fcb20da0695d17cdcb Mon Sep 17 00:00:00 2001 From: Ryan Hinkel Date: Tue, 28 May 2024 01:04:39 -0400 Subject: [PATCH] feat: add svelte export condition (#22) 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 --- package.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package.json b/package.json index 673c067..e852f4e 100644 --- a/package.json +++ b/package.json @@ -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",