Skip to content

Only require the core libraries of aws-sdk#62

Open
ivomurrell wants to merge 2 commits intoTheDeveloper:masterfrom
MoixaEnergy:aws-sdk-core-only
Open

Only require the core libraries of aws-sdk#62
ivomurrell wants to merge 2 commits intoTheDeveloper:masterfrom
MoixaEnergy:aws-sdk-core-only

Conversation

@ivomurrell
Copy link

Only include the library files from aws-sdk rather than the whole module. This means module bundler tools like webpack can tree shake the API JSON files of unused services when including http-aws-es as a dependency. Doing so can massively reduce bundle size of dependents.

Following advice from AWS's documentation on webpack: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/webpack.html

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant