A previous commit implemented a streamlined performance metric reporting system for the compiler-cli, controlled via the compiler option `tracePerformance`. This commit adds a custom Bazel flag rule //packages/compiler-cli:ng_perf to the repository, and wires it through to the `ng_module` implementation such that if the flag is set, `ng_module` will produce perf results as part of the build. The underlying mechanism of `//:ng_perf` is not exported from `@angular/bazel` as a public rule that consumers can use, so there is little risk of accidental dependency on the contents of these perf traces. An alias is added so that `--ng_perf` is a Bazel flag which works in our repository. PR Close #41125
18 lines
614 B
Python
18 lines
614 B
Python
# Copyright Google LLC All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by an MIT-style license that can be
|
|
# found in the LICENSE file at https://angular.io/license
|
|
""" Public API surface is re-exported here.
|
|
|
|
Users should not load files under "/src"
|
|
"""
|
|
|
|
load("//packages/bazel/src/ng_package:ng_package.bzl", _ng_package = "ng_package_macro")
|
|
load("//packages/bazel/src:ng_module.bzl", _ng_module = "ng_module_macro")
|
|
|
|
ng_module = _ng_module
|
|
ng_package = _ng_package
|
|
|
|
# DO NOT ADD PUBLIC API without including in the documentation generation
|
|
# Run `yarn bazel build //packages/bazel/docs` to verify
|