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:
parent
3fd50f07fd
commit
57531737e5
|
@ -32,6 +32,7 @@ nodejs_binary(
|
||||||
data = [
|
data = [
|
||||||
":ngc_lib",
|
":ngc_lib",
|
||||||
"@build_bazel_rules_typescript//third_party/github.com/bazelbuild/bazel/src/main/protobuf:worker_protocol.proto",
|
"@build_bazel_rules_typescript//third_party/github.com/bazelbuild/bazel/src/main/protobuf:worker_protocol.proto",
|
||||||
|
"@ngdeps//source-map-support",
|
||||||
"@ngdeps//tslib",
|
"@ngdeps//tslib",
|
||||||
],
|
],
|
||||||
entry_point = "angular/packages/bazel/src/ngc-wrapped/index.js",
|
entry_point = "angular/packages/bazel/src/ngc-wrapped/index.js",
|
||||||
|
@ -42,6 +43,7 @@ nodejs_binary(
|
||||||
name = "xi18n",
|
name = "xi18n",
|
||||||
data = [
|
data = [
|
||||||
":ngc_lib",
|
":ngc_lib",
|
||||||
|
"@ngdeps//source-map-support",
|
||||||
],
|
],
|
||||||
entry_point = "angular/packages/bazel/src/ngc-wrapped/extract_i18n.js",
|
entry_point = "angular/packages/bazel/src/ngc-wrapped/extract_i18n.js",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
|
|
|
@ -179,11 +179,12 @@ def ts_web_test_suite(bootstrap = [], deps = [], tags = [], **kwargs):
|
||||||
**kwargs
|
**kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
def nodejs_binary(**kwargs):
|
def nodejs_binary(data = [], **kwargs):
|
||||||
"""Default values for nodejs_binary"""
|
"""Default values for nodejs_binary"""
|
||||||
_nodejs_binary(
|
_nodejs_binary(
|
||||||
# Pass-thru --define=compile=foo as an environment variable
|
# Pass-thru --define=compile=foo as an environment variable
|
||||||
configuration_env_vars = ["compile"],
|
configuration_env_vars = ["compile"],
|
||||||
|
data = data + ["@ngdeps//source-map-support"],
|
||||||
**kwargs
|
**kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -197,6 +198,7 @@ def jasmine_node_test(deps = [], tags = [], **kwargs):
|
||||||
"@ngdeps//jasmine-core",
|
"@ngdeps//jasmine-core",
|
||||||
"@ngdeps//mock-fs",
|
"@ngdeps//mock-fs",
|
||||||
"@ngdeps//reflect-metadata",
|
"@ngdeps//reflect-metadata",
|
||||||
|
"@ngdeps//source-map-support",
|
||||||
"@ngdeps//tslib",
|
"@ngdeps//tslib",
|
||||||
"@ngdeps//xhr2",
|
"@ngdeps//xhr2",
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue