Closed thomaschaaf closed 3 years ago
Would the packages lazy loading functionality help with speeding up lambda functions?
No as webpack still can not remove the files which are unused.
I'm having the same issue, twilio is bloating my lambda. @thomaschaaf Did you have any luck reducing your bundle? I'm considering throwing this packing and using http calls to hit the communications api
@mattensor i am using serverless-webpack and put it in the externals that way at least it's only included once.
Issue Summary
The way this package is built webpack is not able to shake off unused code. This causes this npm module to be very large at 13 MB. To speed up (cold starts) of AWS Lambda functions the code needs to be as small as possible this library currently is extremly huge.
Technical details: