Skip to content

Commit 6bd3636

Browse files
devversionandrewseguin
authored andcommitted
build: generate metadata for cdk keycodes (#17203)
We need to use "ng_module" for building the `keycodes` entry-point since we want metadata to be generated for keycode constants. This is necessary because some of these constants are statically used in component/directive metadata (e.g. chips) and NGC needs to be able to evaluate these at compile time. (cherry picked from commit 8584487)
1 parent bf6a91a commit 6bd3636

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/cdk/keycodes/BUILD.bazel

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
package(default_visibility = ["//visibility:public"])
22

3-
load("//tools:defaults.bzl", "karma_web_test_suite", "markdown_to_html", "ts_library")
3+
load("//tools:defaults.bzl", "karma_web_test_suite", "markdown_to_html", "ng_module", "ts_library")
44

5-
ts_library(
5+
# We need to use "ng_module" here since we want metadata to be generated for keycode
6+
# constants. This is necessary because some of these constants are statically used in
7+
# component/directive metadata (e.g. chips) and NGC needs to be able to evaluate these
8+
# at compile time.
9+
ng_module(
610
name = "keycodes",
711
srcs = glob(
812
["**/*.ts"],

0 commit comments

Comments
 (0)