Skip to content

Commit

Permalink
feat: support tree-shaking, change exports map (#73)
Browse files Browse the repository at this point in the history
* feat: update package.json

* chore: update changeset message
  • Loading branch information
junghyeonsu authored Mar 20, 2024
1 parent 4bc70a4 commit 419a57b
Show file tree
Hide file tree
Showing 3 changed files with 606 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .changeset/silver-flies-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@seed-design/icon": minor
---

feat:

- `font` 폴더를 추가하고 flutter 지원을 위한 폰트 파일들을 추가해요.
- package.json에 tree-shaking을 위한 `sideEffects: false`를 추가해요. ([참고](https://github.com/vercel/next.js/issues/12557#issuecomment-865142966))
- package.json의 exports를 수정해요.
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"files": [
"svg",
"drawable",
"pdf",
"lib"
],
"type": "module",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"main": "./lib/index.cjs",
"module": "./lib/index.js",
"exports": {
".": {
"types": "./lib/index.d.ts",
Expand All @@ -26,7 +27,12 @@
"./*": {
"types": "./lib/*.d.ts",
"import": "./lib/*.js",
"require": "./lib/*.cjs"
"require": "./lib/index.cjs"
},
"./lib/*": {
"types": "./lib/*.d.ts",
"import": "./lib/*.js",
"require": "./lib/index.cjs"
}
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 419a57b

Please sign in to comment.