Skip to content

Commit 49977f7

Browse files
devversionjelbourn
authored andcommitted
build: fix missing amd module name for primary entry-point (#17757)
Even though the primary entry-point of Angular Material is empty, it should still have an AMD module name (similar to the CDK). A good example is that consumers of Angular Material in a Bazel project can have the unnamed bundle as input of a target (like ts_devserver). RequireJS will then throw about an anonymous module. Fixes #17720
1 parent e2fd099 commit 49977f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/material/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ load("//tools:defaults.bzl", "ng_package", "ts_library")
1414
ts_library(
1515
name = "material",
1616
srcs = ["index.ts"],
17+
module_name = "@angular/material",
1718
)
1819

1920
filegroup(

0 commit comments

Comments
 (0)