Skip to content

Commit 04132c6

Browse files
committed
fix(bazel/spec-bundling): ensure transitive npm sources are available
Fixes that spec-bundling wasn't able to bundle when external npm packages were involved.
1 parent f1c1151 commit 04132c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bazel/spec-bundling/index_rjs.bzl

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ def spec_bundle(name, deps, bootstrap = [], testonly = True, **kwargs):
1111

1212
esbuild.esbuild(
1313
name = name,
14-
srcs = [
14+
# Note: `deps` are added here to automatically collect transitive NPM
15+
# sources etc. and make them available for bundling.
16+
srcs = deps + [
1517
":%s_entrypoint" % name,
1618
],
1719
testonly = testonly,

0 commit comments

Comments
 (0)