Skip to content

Commit

Permalink
chore(exports): add exports to package.json for svelte
Browse files Browse the repository at this point in the history
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.

[email protected]
  • Loading branch information
dysfunc authored Nov 26, 2023
1 parent 0f5c353 commit 8c24b84
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}

0 comments on commit 8c24b84

Please sign in to comment.