Getting started

esbuild-azure-functions is a ✨blazingly fast✨ build tool for Azure Functions.

circle-exclamation

Installation

npm i esbuild-azure-functions

If you only plan on using the CLI, you can also run it with npx

npx esbuild-azure-functions [-c <config location>]

The CLI expects a config file called esbuild-azure-functions.config.json in the directory you are running it from. You can specify a different config location with the -c | --config flag. Refer to the Configuration page for config options.

For detailed usage, refer to the documentation for Build API and the Watch API.

Configure your Azure Functions project

triangle-exclamation

By default, the file extension of output files is set to .mjs. This is because the Azure Functions runtime requires this (see Microsoft Docsarrow-up-right). You need to change the scriptFile property of your function.json files accordingly.

Last updated