Skip to content

Commit a0d5a05

Browse files
committed
fix(bazel): add support for defining the platform used for bundling spec_bundle targets
Previously the platform was hardcoded to node which worked by chance, but in some cases the platform should be explicitly set to browser for web test which will run in a browser
1 parent db18d71 commit a0d5a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bazel/spec-bundling/index_rjs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def spec_bundle(name, deps, srcs = [], bootstrap = [], testonly = True, config =
3131
bundle = True,
3232
format = "iife",
3333
sourcemap = "linked",
34-
platform = "node",
34+
platform = kwargs.pop("platform", "node"),
3535
entry_point = ":%s_entrypoint" % name,
3636
output = "%s.spec.js" % name,
3737
**kwargs

0 commit comments

Comments
 (0)