Skip to content

A serverless plugin to visualize and analyze the bundle of a lambda bundled with serverless-esbuild.

Notifications You must be signed in to change notification settings

MONEI/serverless-analyze-bundle-plugin

 
 

Repository files navigation

Serverless analyze bundle plugin

A Serverless plugin to analyze the bundle of a lambda function.

Prerequisites 📓

  1. Use serverless-esbuild to bundle your functions
  2. Only individually bundled functions can be analyzed

Usage 📦

Install with

pnpm add -D serverless-analyze-bundle-plugin

Add serverless-analyze-bundle-plugin to your serverless plugins.

Run the following command to analyze a function:

serverless package --analyze myFunctionName

Options 🛠

--analyze

The name of the function to analyze.

--template

The bundle template to use. Should be one of sunburst, treemap, network. Defaults to treemap.

Using the CDK instead of the Serverless Framework? 🤔

No worries! Check out my library cdk-bundle-analyzer that does the same thing for the CDK 🚀

About

A serverless plugin to visualize and analyze the bundle of a lambda bundled with serverless-esbuild.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 62.8%
  • JavaScript 35.8%
  • Shell 1.4%