build: add source-map-support to various rules within our repo (#26471)

This removes an verbose warning and adds source-mapping support to our build/ci.

Related issue: https://github.com/bazelbuild/rules_nodejs/issues/389

PR Close #26471
This commit is contained in:
Igor Minar
2018-10-22 18:02:42 -07:00
committed by Alex Rickabaugh
parent 4503b28295
commit 44e604b131
2 changed files with 5 additions and 1 deletions

View File

@ -179,11 +179,12 @@ def ts_web_test_suite(bootstrap = [], deps = [], tags = [], **kwargs):
**kwargs
)
def nodejs_binary(**kwargs):
def nodejs_binary(data = [], **kwargs):
"""Default values for nodejs_binary"""
_nodejs_binary(
# Pass-thru --define=compile=foo as an environment variable
configuration_env_vars = ["compile"],
data = data + ["@ngdeps//source-map-support"],
**kwargs
)
@ -197,6 +198,7 @@ def jasmine_node_test(deps = [], tags = [], **kwargs):
"@ngdeps//jasmine-core",
"@ngdeps//mock-fs",
"@ngdeps//reflect-metadata",
"@ngdeps//source-map-support",
"@ngdeps//tslib",
"@ngdeps//xhr2",
]