Skip to content

Commit fff1d36

Browse files
committed
feat(bazel): support more options in spec-bundle rule
Support `config` in `spec-bundle` rule. This is useful for supporting e.g. path mappings.
1 parent 2a3cbd4 commit fff1d36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bazel/spec-bundling/index_rjs.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ def spec_bundle(name, deps, bootstrap = [], testonly = True, config = {}, **kwar
3838
**kwargs
3939
)
4040

41-
def spec_bundle_amd(name, workspace_name, **kwargs):
41+
def spec_bundle_amd(name, workspace_name, config = {}, **kwargs):
4242
amd_name = "%s/%s/%s" % (workspace_name, native.package_name(), name + ".spec")
4343

4444
spec_bundle(
4545
name,
46-
config = {
46+
config = dict({
4747
"globalName": "__exports",
4848
"banner": {"js": "define(\"%s\", [], function() {" % amd_name},
4949
"footer": {"js": "return __exports;})"},
50-
},
50+
}, **config),
5151
**kwargs
5252
)

0 commit comments

Comments
 (0)