Skip to content

Commit

Permalink
fix: Add svelte exports condition (#85)
Browse files Browse the repository at this point in the history
Fixes the following warning:

```
[vite-plugin-svelte] WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte.

[email protected]

Please see https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition for details.
```
  • Loading branch information
lachlancollins authored Dec 19, 2023
1 parent 545e822 commit 8a9daf4
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 @@ -6,6 +6,13 @@
"module": "dist/sveltemarkdown.es.js",
"jsnext:main": "dist/sveltemarkdown.es.js",
"svelte": "src/index.js",
"exports": {
".": {
"types": "./types/index.d.ts",
"svelte": "./src/index.js"
},
"./package.json": "./package.json"
},
"type": "module",
"files": [
"dist",
Expand Down

0 comments on commit 8a9daf4

Please sign in to comment.