JordanSowers Posted August 1, 2022 Share Posted August 1, 2022 Forgive me if this has been discussed. My Weback Bundle Analyzer is showing GSAP at a pretty large size (415.17kb). I'm including it within my project as import gsap from "gsap"; and have Webpack compiling gsap and other plugins to a vendor.js file, which is where I'm seeing this.. Link to comment Share on other sites More sharing options...
Solution SteveS Posted August 1, 2022 Solution Share Posted August 1, 2022 There's tons of variables at play as to why this could be happening. It's overwhelmingly likely something in your webpack is misconfigured, but there isn't really a way for us to tell. Can you explain what you are doing in more detail? 1 Link to comment Share on other sites More sharing options...
GreenSock Posted August 2, 2022 Share Posted August 2, 2022 Yeah, GSAP definitely is not 99.56kb gzipped. It's like 25% of that. I wish I had a good answer for you, but it sure sounds like @SteveS is right about it being some kind of configuration thing on your end. 🤷♂️ Link to comment Share on other sites More sharing options...
JordanSowers Posted August 27, 2022 Author Share Posted August 27, 2022 Thank you both for the tips. @SteveS was correct about my webpack configuration. For some reason it was including GSAP multiple times. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now