From 8c24b8450609f4f6e8fb8fa28bf39ab39af9df58 Mon Sep 17 00:00:00 2001 From: Kieran Boyle Date: Sun, 26 Nov 2023 11:00:21 -0800 Subject: [PATCH] chore(exports): add exports to package.json for svelte This resolves the issue. > [vite-plugin-svelte] WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte. sveltestrap@5.11.2 --- package.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0cc8203f..3404e7d2 100644 --- a/package.json +++ b/package.json @@ -100,5 +100,11 @@ "dependencies": { "@popperjs/core": "^2.11.8" }, - "browserslist": "last 2 versions" + "browserslist": "last 2 versions", + "exports": { + ".": { + "types": "./src/index.d.ts", + "svelte": "./src/index.js" + } + } }