In this template you'll find a simple example project for reducing AWS Lambda package sizes via a Serverless Framework plugin called serverless-esbuild. You can find the corresponding article on our blog.
By using the serverless-esbuild plugin you can let ESBuild reduce the final AWS Lambda zip before it's uploaded to AWS. This simple plugin can help you massively reduce your AWS Lambda package sizes while still working with other Serverless Framework options like "packageIndividually".
Dharm is an AWS Community Builder and Senior Serverless Developer at Serverless Guru, specializing in serverless application development.
Create And Deploy AWS Lambda Using Terraform
Prevent DDos Attack on API Gateway Using AWS WAF