build: update postinstall patch to account for benchmark macro changes (#44911)

Updates the postinstall patch for the benchmark macro rule from dev-infra.
We moved the ZoneJS setup to the bundler. This was necessary in order to
switch away from the Go-based (windows-incompatible, m1-incompatible)
concatjs devserver to a rather basic HTTP server (also provided by dev-infra now).

PR Close #44911
This commit is contained in:
Paul Gschwendtner
2022-01-30 14:59:57 +01:00
committed by Jessica Janiuk
parent 881d4696a2
commit 85b889e6fb
2 changed files with 11 additions and 3 deletions
+10 -2
View File
@@ -1,7 +1,8 @@
package(default_visibility = ["//visibility:public"])
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
load("//packages/zone.js/dist:tools.bzl", "copy_es2015_to_dist", "copy_es5_to_dist")
package(default_visibility = ["//visibility:public"])
copy_es2015_to_dist()
copy_es5_to_dist()
@@ -34,6 +35,13 @@ genrule(
cmd = "cp $< $@",
)
js_library(
name = "zone",
srcs = [":zone.js"],
package_name = "zone.js/dist",
visibility = ["//modules/benchmarks:__subpackages__"],
)
filegroup(
name = "dist_bundle_group",
srcs = [
+1 -1
View File
@@ -81,7 +81,7 @@ captureNgDevPatches(
[
['@npm//@angular/platform-browser', '@angular//packages/platform-browser'],
['@npm//@angular/core', '@angular//packages/core'],
['@npm//:node_modules/zone.js/bundles/zone.umd.js', '//packages/zone.js/bundles:zone.umd.js'],
['@npm//zone.js', '//packages/zone.js/dist:zone'],
[
'load\\("@npm//@angular/bazel:index.bzl", "ng_module"\\)',
'load\("@angular//tools:defaults.bzl", "ng_module"\)'