javascript – Is there a way to avoid huge AWS-SDK and Amplify npm packages?
I have a project that is around half an mb. It relies on AWS-Amplify
authentication to do signUp() login() and isAuth()..etc via their API (Not using their UI components).
When I was inspecting the npm package sizes using a bundle analyzer, I saw the following:
@aws-sdk ~9.7mb
@aws-amplify ~3.3mb
my own package ~500kb
I further confirmed that in Chrome devTool, it took Chrome over 10 sec to load up the AWS stuff and it was around 13mb together.
These packages look very big to me for just doing signup login. Am I doing something incorrectly? If it was, what’s the correct way to include these packages and reduce the bundle size?
Read more here: Source link