New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

serverless-analyze-bundle-plugin

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-analyze-bundle-plugin

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

2.1.0
latest
Source
npm
Version published
Weekly downloads
5.4K
-1.59%
Maintainers
0
Weekly downloads
 
Created
Source

Serverless analyze bundle plugin

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

Prerequisites 📓

  • Use serverless-esbuild to bundle your functions
  • 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 🚀

FAQs

Package last updated on 11 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts