mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jessica Janiuk
parent
881d4696a2
commit
85b889e6fb
Vendored
+10
-2
@@ -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 = [
|
||||
|
||||
@@ -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"\)'
|
||||
|
||||
Reference in New Issue
Block a user