Skip to content

Commit

Permalink
feat(bazel): never build metafile by default in esbuild actions
Browse files Browse the repository at this point in the history
This will remove the unnecessary files from most NPM packages
relying on esbuild.
  • Loading branch information
devversion committed Jan 9, 2023
1 parent 156cc26 commit 3115c3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bazel/esbuild/index.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ def esbuild(
# as workspace in the Chrome devtools.
# https://github.com/bazelbuild/rules_nodejs/blob/c30a26c13d20dac48dc9f220370cb02a317b13f3/packages/esbuild/esbuild.bzl#L333.
sources_content = True,
# Never build a metadata file by default. It's not needed in most use-cases.
metafile = False,
**kwargs):
_esbuild(
name = name,
sources_content = sources_content,
metafile = metafile,
**kwargs
)

Expand Down

0 comments on commit 3115c3d

Please sign in to comment.