SamVerschueren / ngx-api-gateway-client

AWS API Gateway Client for Angular
MIT License
8 stars 2 forks source link

1,83 Megabyte aws-sdk bundle size #10

Open TheSythus opened 6 years ago

TheSythus commented 6 years ago

Hi,

thanks for writing this client! It works great.

However, we figured out some issues with the bundle size. Using your ngx-api-gateway-client requires an import of the aws-sdk which leads to a higher (prod) bundle size of 1,83 MB only for aws-sdk according to the Webpack Bundle Analyzer.

Do you see any chance to do some optimizations here?

Thanks in advance!

SamVerschueren commented 6 years ago

Maybe, since recently AWS supports specific service imports instead of the entire sdk. Not sure how well it works with tree shaking the bundle though but we could give it a try. If it doesn't work, I'm not sure if there's an other option.

dudumanbogdan commented 6 years ago

Any updates on this?

SamVerschueren commented 6 years ago

PR and help on this more then welcome!