Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

framer-motion is not tree-shaking #137

Open
kestevez-rv opened this issue Sep 30, 2023 · 3 comments
Open

framer-motion is not tree-shaking #137

kestevez-rv opened this issue Sep 30, 2023 · 3 comments

Comments

@kestevez-rv
Copy link

Could you please make use of framer-motion in such a way to provide tree-shake to reduce the bundle size?

@Temzasse
Copy link
Owner

Temzasse commented Oct 7, 2023

Hi @kestevez-rv 👋🏻

How could that be done? This library is using quite a lot of framer-motion features and based on the docs I would have to include the domMax feature set which wouldn't give any reduction in bundle size, right?

@omridevk
Copy link

omridevk commented Jun 6, 2024

@Temzasse From my understanding you will have to load domMax but it will be loaded async so the initial bundle size will be smaller (As far as I understood it), but then it will load the rest in a different chunk.

@omridevk
Copy link

omridevk commented Jun 6, 2024

Unfortunately the 100kb framer-motion adds is a real deal breaker for us, great lib nonetheless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants