A plugin for the Architect serverless framework that uses esbuild to bundle Lambda functions with dependency inclusion and tree-shaking. Version 3.0.0 introduces esbuild as the runtime, which is a breaking change requiring explicit runtime configuration. Active development with regular releases, targeting Node 14.13+ or 16+. Ships TypeScript types. Differentiator: integrates directly into Architect's `app.arc` config, supports config files for esbuild plugins, and allows custom build directories.
npm install arc-plugin-esbuildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs the plugin, configures app.arc with required pragmas, and creates a simple TypeScript handler.
Add `@aws runtime esbuild` to app.arc.
Migrate to runtime mode by setting @aws runtime esbuild.
Set `buildDirectory src` in @esbuild to avoid hydration issues.
Add `external @prisma/client aws-sdk` to @esbuild pragma.
Add `@esbuild buildDirectory src` to app.arc.
Ensure app.arc has proper pragmas and indentation: `@http get /`.
Run `npm install esbuild --save-dev`.