Skip to content
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

Don't pull in entire aws-sdk #77

Open
kernwig opened this issue Apr 20, 2021 · 1 comment
Open

Don't pull in entire aws-sdk #77

kernwig opened this issue Apr 20, 2021 · 1 comment

Comments

@kernwig
Copy link
Collaborator

kernwig commented Apr 20, 2021

StateStorage, AwsHttps, (and others?) are pulling in the entire aws-sdk as a dependency, preventing unused parts from being tree-shaken out of the resulting Lambdas where these libraries are used.

Update the import statements to only pull in the needed clients. Details: https://adamfanello.medium.com/reduce-existing-javascript-lambda-package-by-49-yes-please-fe08c9aa60d

@kernwig
Copy link
Collaborator Author

kernwig commented Sep 25, 2021

Released in state-storage v2.0.0

aws-https is more difficult, due to changes in credential handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant