Serverless AWS Lambda Function ES Build Setup

Setup ES Build for your Serverless Project. Build your Serverless Lambda Functions using ES Build for smaller packaged services and quicker builds.

Add the following to your Serverless file:

1plugins: 2 - serverless-esbuild 3 4custom: 5 esbuild: 6 exclude: '*'

Run the following commands in your terminal:

1npm install esbuild 2 3npm install serverless-esbuild --save -D

Remove your Webpack or other build and packaging tools.