A blazingly fast builder for Azure Functions powered by esbuild, version 2.0.1. It compiles TypeScript Azure Functions into optimized bundles, reducing cold starts and deployment times. Active development as of 2023, with a focus on speed and small bundle sizes compared to traditional Azure Functions tooling. Supports watch mode and provides plugins for __dirname and require shimming. Requires esbuild v0.17.5+ as a peer dependency.
npm install esbuild-azure-functionsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic build and watch mode for Azure Functions using esbuild-azure-functions.
Ensure your project's esbuild version is >=0.17.5 and update any custom plugins accordingly.
Use 'import' syntax or set 'type':'module' in package.json.
Set watch: true to enable watch mode. Custom watchers are not supported.
Define external dependencies in esbuild options (e.g., external: ['@azure/functions']) to exclude from bundle.
Upgrade to v2.0.0 or later.
Add an 'entryPoints' array to the build options, e.g., entryPoints: ['functions/**/*.ts'].
Switch to 'import { build } from 'esbuild-azure-functions'' and ensure your project uses ESM.Add '@azure/functions' to the 'external' list in esbuild options, or install it and bundle it.
Set watch: true or watch: false explicitly.