A Serverless plugin to analyze the bundle of a lambda function.
npm install serverless-analyze-bundle-pluginA Serverless plugin to analyze the bundle of a lambda function.
1. Use serverless-esbuild to bundle your functions
2. Only individually bundled functions can be analyzed
Install with
``bash`
pnpm add -D serverless-analyze-bundle-plugin
Add serverless-analyze-bundle-plugin to your serverless plugins.
Run the following command to analyze a function:
`bash`
serverless package --analyze myFunctionName
The name of the function to analyze.
The bundle template to use. Should be one of sunburst, treemap, network. Defaults to treemap`.
No worries! Check out my library cdk-bundle-analyzer that does the same thing for the CDK 🚀