Skip to content

Commit

Permalink
Rollup Tree shaking 🌳 (#2712)
Browse files Browse the repository at this point in the history
* Update rollup.config.mjs

* bundleStats

* treeshake

* compare: false,

* rm rollup-plugin-sizes

* Create build-tree-shake.md

* Create all-builds-shake.md
  • Loading branch information
TheSonOfThomp authored Feb 21, 2025
1 parent 3111a76 commit 541e12e
Show file tree
Hide file tree
Showing 5 changed files with 239 additions and 43 deletions.
100 changes: 100 additions & 0 deletions .changeset/all-builds-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
---
'@lg-charts/core': patch
'@lg-chat/avatar': patch
'@lg-chat/chat-disclaimer': patch
'@lg-chat/chat-window': patch
'@lg-chat/fixed-chat-window': patch
'@lg-chat/input-bar': patch
'@lg-chat/leafygreen-chat-provider': patch
'@lg-chat/lg-markdown': patch
'@lg-chat/message': patch
'@lg-chat/message-feed': patch
'@lg-chat/message-feedback': patch
'@lg-chat/message-prompts': patch
'@lg-chat/message-rating': patch
'@lg-chat/rich-links': patch
'@lg-chat/title-bar': patch
'@leafygreen-ui/a11y': patch
'@leafygreen-ui/avatar': patch
'@leafygreen-ui/badge': patch
'@leafygreen-ui/banner': patch
'@leafygreen-ui/box': patch
'@leafygreen-ui/button': patch
'@leafygreen-ui/callout': patch
'@leafygreen-ui/card': patch
'@leafygreen-ui/checkbox': patch
'@leafygreen-ui/chip': patch
'@leafygreen-ui/code': patch
'@leafygreen-ui/combobox': patch
'@leafygreen-ui/confirmation-modal': patch
'@leafygreen-ui/copyable': patch
'@leafygreen-ui/date-picker': patch
'@leafygreen-ui/date-utils': patch
'@leafygreen-ui/descendants': patch
'@leafygreen-ui/emotion': patch
'@leafygreen-ui/empty-state': patch
'@leafygreen-ui/expandable-card': patch
'@leafygreen-ui/form-field': patch
'@leafygreen-ui/form-footer': patch
'@leafygreen-ui/gallery-indicator': patch
'@leafygreen-ui/guide-cue': patch
'@leafygreen-ui/hooks': patch
'@leafygreen-ui/icon': patch
'@leafygreen-ui/icon-button': patch
'@leafygreen-ui/info-sprinkle': patch
'@leafygreen-ui/inline-definition': patch
'@leafygreen-ui/input-option': patch
'@leafygreen-ui/leafygreen-provider': patch
'@leafygreen-ui/lib': patch
'@leafygreen-ui/loading-indicator': patch
'@leafygreen-ui/logo': patch
'@leafygreen-ui/marketing-modal': patch
'@leafygreen-ui/menu': patch
'@leafygreen-ui/modal': patch
'@leafygreen-ui/number-input': patch
'@leafygreen-ui/ordered-list': patch
'@leafygreen-ui/pagination': patch
'@leafygreen-ui/palette': patch
'@leafygreen-ui/password-input': patch
'@leafygreen-ui/pipeline': patch
'@leafygreen-ui/polymorphic': patch
'@leafygreen-ui/popover': patch
'@leafygreen-ui/portal': patch
'@leafygreen-ui/radio-box-group': patch
'@leafygreen-ui/radio-group': patch
'@leafygreen-ui/ripple': patch
'@leafygreen-ui/search-input': patch
'@leafygreen-ui/segmented-control': patch
'@leafygreen-ui/select': patch
'@leafygreen-ui/side-nav': patch
'@leafygreen-ui/skeleton-loader': patch
'@leafygreen-ui/split-button': patch
'@leafygreen-ui/stepper': patch
'@leafygreen-ui/table': patch
'@leafygreen-ui/tabs': patch
'@leafygreen-ui/testing-lib': patch
'@leafygreen-ui/text-area': patch
'@leafygreen-ui/text-input': patch
'@leafygreen-ui/toast': patch
'@leafygreen-ui/toggle': patch
'@leafygreen-ui/tokens': patch
'@leafygreen-ui/tooltip': patch
'@leafygreen-ui/typography': patch
'@lg-tools/cli': patch
'@lg-tools/codemods': patch
'@lg-tools/create': patch
'@lg-tools/install': patch
'@lg-tools/link': patch
'@lg-tools/lint': patch
'@lg-tools/meta': patch
'@lg-tools/slackbot': patch
'@lg-tools/storybook-addon': patch
'@lg-tools/storybook-decorators': patch
'@lg-tools/storybook-utils': patch
'@lg-tools/test': patch
'@lg-tools/test-harnesses': patch
'@lg-tools/update': patch
'@lg-tools/validate': patch
---

Updates builds to leverage Rollup tree shaking. (see [`tools/build/config/rollup.config.mjs`](https://github.com/mongodb/leafygreen-ui/blob/main/tools/build/config/rollup.config.mjs))
5 changes: 5 additions & 0 deletions .changeset/build-tree-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lg-tools/build': patch
---

Updates Rollup config to enable tree-shaking
141 changes: 121 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 541e12e

Please sign in to comment.