serverless-analyze-bundle-plugin
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i serverless-analyze-bundle-plugin

Weekly Downloads

3,577

Version

2.0.1

License

MIT

Unpacked Size

13.7 kB

Total Files

7

Last publish

Collaborators

  • adriencaccia