-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Considerable bundle size increase when upgrading from @aws-amplify/[email protected] to @aws-amplify/[email protected] #7313
Comments
More specifically, it's between On |
This is a very important problem in my opinion. I have to support this. It increases the size of the application by 244 kb ! It's way too much to just handle authentication ! From what I've seen, if we use the I found nothing else to fix it. If anyone has a better solution, that would be great. Here are the versions I am currently using:
Edit:It may not be important but ... |
I think I've identified part of the issue and have got the ball rolling with a detailed PR here #7521 Thanks everyone for your stats and input; they have helped in corroborating my initial findings :) |
My bundle, from 7484. You can significantly reduce your dev bundle by using |
@huoxito and anyone following this, our team is investigating improvements to the bundle size for Amplify. We will provide you with updates when we have the next steps identified. Thank you all for providing us with this feedback! |
Hello everybody, our team has been focusing on reducing the bundle size of the Amplify library, and starting v 5.2.5, we have been able to reduce the bundle size for the below use cases:
This is only the first step in our bundle size reduction efforts. In our next major version of Amplify JavaScript, we are going to provide better mechanisms for tree-shaking that will substantially reduce the bundle size. Stay tuned - we will provide updates on this issue when we have expected timelines mapped out. Please try out the newest version of Amplify, and let us know if you are seeing the improvements I've mentioned! Your feedback is essential to helping us improve our library! |
Hello everyone, We have made some additional changes to reduce the bundle size which include reduction to the Storage category as part of [email protected]. Below are our updated reduction numbers for the gzip bundle size. Please let us know if you are seeing these reductions in your apps.
|
With the release of the latest major version of Amplify (aws-amplify@>6), this issue should now be resolved! Please refer to our release announcement, migration guide, and documentation for more information. |
Hi!
We're trying to upgrade to latest
@aws-amplify/auth
and we noticed a considerable build size increase. Our vendor bundle went from 213,58KB to 304,46KB.Looking into npm it seems the unpacked size went from 2.16 MB to 6.47 MB. Any chance there's a way to decrease this bundle size? Maybe opt out some features not needed for some apps. Is there any on going project / task to try decrease that bundle size?
We haven't found any bugs with 3.4.13, so far all good. But since this build increase affects our TTI I was hoping to understand better what happened or how we could make it better moving forward with amplify/js.
The text was updated successfully, but these errors were encountered: