Question about bundle size of Motion 11 #2967
-
Hi :), We've been using Motion One for some years now on all our Shopify themes. The library has served us well and simplified a lot the managing of all our animations. After upgrading to Motion 11 (mainly to experiment with native scroll timeline), we're currently experiencing a few important regressions (I've reported them), but more importantly this new version more or less doubled the bundle size of our dependencies (19Kb => 34Kb Gzip). As we're doing Shopify themes, we're trying to make sure that the base impact of our code is as minimal as possible, so we might considering downgrading back to Motion One (we're having a quite minimal usage of animations, so this does not seem to be worth the size hit for us). We would like to know though what is the roadmap of this? Does the architecture of Motion 11 make it hard to reduce the size, or are there plans to bring the size back close to what Motion One does? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Hey @bakura10! Thanks for all your reports. I would like to get to them but there's some things I want to get rolling before doing a bug burn down early this year. The main bundlesize changes are to do with the
So I assume the former is responsible for most of the bundlesize changes. If you can get to |
Beta Was this translation helpful? Give feedback.
-
FYI the old motiondivision/motionone repo has the docs for timeline/animate co-located in their respective folders in a README.md Actually this is a little bit of a typo. It could be possible to get a timeline working with
But I found it difficult to explain in the docs (as you only really needed it for the mini version) Perhaps I can take a look at reinstating this or how possible that would be |
Beta Was this translation helpful? Give feedback.
-
I'm closing that as, except for the |
Beta Was this translation helpful? Give feedback.
@bakura10 It was actually already in there, I just had to export it. In
11.18.0
you canAnd it should be out within the hour