Skip to content

Commit

Permalink
Use main field in Svelte package for bundlephobia
Browse files Browse the repository at this point in the history
  • Loading branch information
barvian committed Oct 27, 2024
1 parent 7f63825 commit 790e0c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/loud-wombats-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@number-flow/svelte': patch
---

Use main field for bundlephobia
2 changes: 2 additions & 0 deletions packages/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@
"!dist/**/*.spec.*",
"README.md"
],
"main": "./dist/index.js",
"svelte": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js",
"svelte": "./dist/index.js"
}
},
Expand Down

0 comments on commit 790e0c4

Please sign in to comment.