4 ms·
Have you ever tried to import the AWS SDK into a front end client? It's huge. Last time I tried it, it added multi MB of JS to my SPA, so I could do a relativ
by BackBlast 4y ago
Have you ever tried to import the AWS SDK into a front end client? It's huge. Last time I tried it, it added multi MB of JS to my SPA, so I could do a relatively "simple" call using it. Yuck.
It did not tree shake cleanly with my build system and I eventually ended up just yanking AWS from the stack entirely.
- orf 4y agoDid you import the entire SDK, or only the SDK for the service you actually needed?
- BackBlast 4y agoOnly way I could figure out was using the core SDK. There was no service-only option that I could find. I just spent 5 minutes looking, just now, to see if another option exists. I got nothing. So... if it is out there, it's complicated enough I couldn't find my miss-steps then or now.
- orf 4y agoThere are individual packages for clients? https://www.npmjs.com/search?q=%40aws-sdk%2Fclient- https://www.npmjs.com/search?q=%40aws-sdk%2Fclient- https://www.npmjs.com/package/@aws-sdk/client-secrets-manager https://www.npmjs.com/package/@aws-sdk/client-secrets-manage... for example
- BackBlast 4y agoThat's a good bit of info. Excellent, I'll tuck that one away for the future.