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 3fd50f07fd
commit 57531737e5
2 changed files with 5 additions and 1 deletions

View File

@ -32,6 +32,7 @@ nodejs_binary(
data = [
":ngc_lib",
"@build_bazel_rules_typescript//third_party/github.com/bazelbuild/bazel/src/main/protobuf:worker_protocol.proto",
"@ngdeps//source-map-support",
"@ngdeps//tslib",
],
entry_point = "angular/packages/bazel/src/ngc-wrapped/index.js",
@ -42,6 +43,7 @@ nodejs_binary(
name = "xi18n",
data = [
":ngc_lib",
"@ngdeps//source-map-support",
],
entry_point = "angular/packages/bazel/src/ngc-wrapped/extract_i18n.js",
visibility = ["//visibility:public"],

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",
]