yujeongJeon / ndive-design-system

npm-deep-dive chapter8 monorepo project
https://yujeongjeon.github.io/ndive-design-system/
0 stars 0 forks source link

번들러 코드 수정 #31

Closed yujeongJeon closed 1 month ago

yujeongJeon commented 1 month ago

글쓰면서 약간 더 보완하는 중입니다

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: eef23f54574d4c1920361f76ea37db29ac33e622

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages | Name | Type | | ------------------------ | ----- | | @ndive/design-components | Patch | | @ndive/design-tokens | Patch | | @ndive/design-storybook | Patch | | @ndive/vite | Patch | | shopping-web | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

yujeongJeon commented 1 month ago

changeset 이슈

yujeongJeon commented 1 month ago

트리쉐이킹 이후 https://www.npmjs.com/package/vite-bundle-visualizer 로 본 결과물 (Rollup 번들러도 sideEffects 보니까 누락하지 않도록 주의)

Before

스크린샷 2024-10-26 오후 9 25 36

After

스크린샷 2024-10-26 오후 9 25 29

rollupOptions.treeshake = 'smallest'는 배럴 파일 이슈로 못함 ㅠ