Skip to content

Commit

Permalink
Add default to package.json exports to improve webpack/rollup c…
Browse files Browse the repository at this point in the history
…ompatibility
  • Loading branch information
techniq committed Nov 20, 2024
1 parent 3c1300e commit a63fccc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/ten-wombats-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'layerchart': patch
---

Add `default` to `package.json` `exports` to improve webpack/rollup compatibility
6 changes: 4 additions & 2 deletions packages/layerchart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,13 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js"
"svelte": "./dist/index.js",
"default": "./dist/index.js"
},
"./utils/*": {
"types": "./dist/utils/*.d.ts",
"svelte": "./dist/utils/*.js"
"svelte": "./dist/utils/*.js",
"default": "./dist/utils/*.js"
}
},
"files": [
Expand Down

0 comments on commit a63fccc

Please sign in to comment.