magr0s / vue-scrollmagic

Vue.js plugin
MIT License
72 stars 24 forks source link

This library yields a huge bundle size and does very little. #23

Open stefvw93 opened 1 year ago

stefvw93 commented 1 year ago

Maybe I'm missing something, but to me it looks like this library is simply a wrapper for scrollmagic, and makes it available through this.$scrollmagic in components.

To do this, it includes Vue and GSAP which it bundles together with it's own source code. You end up with a big bundle (about 220kb of js), without any real extra features compared to just using the scrollmagic package.

The only real thing this library does is in this module: It reimplements the scrollmagic api.

It also installs GSAP even if you do not need it, and bakes Vue library into it's bundle, so your app contains Vue twice.

So, the only benefit of using this library is omitting a import scrollmagic statement, at the cost of increasing your js payload by 220k (or 65kb gzipped).