chakra-ui
chakra-ui copied to clipboard
refactor: remove unused framer features
📝 Description
Changes the motion import to the more lightweigth m component.
⛳️ Current behavior (updates)
Currently uses the motion import which loads all of the features even the ones you don't need.
🚀 New behavior
Uses the lightweight m component with only the animation features loaded into. Since thats the only thing the components use.
💣 Is this a breaking change (Yes/No):
Not a breaking change!
📝 Additional Information
Docs for this change: https://www.framer.com/motion/guide-reduce-bundle-size/
🦋 Changeset detected
Latest commit: 4f54b3d11da4f488095e02d3ebc4649b62f7f765
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 3 packages
Name | Type |
---|---|
@chakra-ui/react | Patch |
@chakra-ui/test-utils | Patch |
@chakra-ui/docs | 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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
chakra-ui-storybook | ❌ Failed (Inspect) | Mar 12, 2024 0:48am | |
chakra-ui-website | ❌ Failed (Inspect) | Mar 12, 2024 0:48am |
Thanks for working on this.
Closing this in favor of the upcoming v3 version which no longer requires framer-motion