Skip to main content
Version: 0.14.x

Public API

Macros and Functions

esbuild

esbuild helper macro around the esbuild_bundle rule

For a full list of attributes, see the esbuild_bundle rule

Example usage (generated):

load("@aspect_rules_esbuild//esbuild:defs.bzl", "esbuild")

esbuild(
# The name used for this rule and output files
name = "",
)

name

Required.

The name used for this rule and output files

output_dir

Optional. Default: False

If True, produce an output directory

splitting

Optional. Default: False

If True, produce a code split bundle in the output directory

config

Optional. Default: None

an esbuild configuration file Can be a dictionary. In this case it is converted to json, and a config file is generated which exports the resulting object, e.g. export default {...}

kwargs

Optional.

All other args from esbuild_bundle