Serverless Framework plugin for zero-config JavaScript and TypeScript bundling using esbuild. Current stable version is 1.57.1 (April 2026), released continuously with semantic release. It automatically bundles and minifies Lambda functions with esbuild, supports TypeScript and JavaScript, integrates with sls package/deploy/deploy function, serverless-offline, and invoke local. Key differentiator: zero-config, extremely fast (esbuild), and supports multiple providers (AWS, Google Cloud, etc.) with runtime support for Node.js 18+. Requires peer dependencies esbuild (0.8 - 0.28) and esbuild-node-externals (^1.0.0). Ships TypeScript types.
npm install serverless-esbuildVerified import paths — ran on the pinned version, not inferred.
Minimal serverless.yml setup with a TypeScript handler bundled by serverless-esbuild.
Upgrade Node.js to version 18 or higher.
Ensure esbuild version is 0.8-0.28. For earlier versions, esbuild 0.8-0.25 is supported.
Upgrade Node.js to 18+.
Upgrade to 1.54.5+ which contains a fix for the memory leak.
To include specific node_modules in the bundle, add them to the 'external' option or override packager options.
npm install -D esbuild
Upgrade Node.js to v18 or later
Update esbuild to a supported version (0.8 - 0.28)