Skip to content

Commit 2a6d68e

Browse files
committed
build: update MDC to latest canary and simplify bazel setup
Updates MDC to the latest canary version which contains: material-components/material-components-web@9808de0. This change allows us to remove the RequireJS configuration files. While removing these files, we also simplify our Bazel Karma test suite setup so that no MDC UMD bundles need to be specified manually. This was cumbersome and especially time-consuming because the old setup also required developers to manually determine which transitive MDC UMD bundles are needed. The new setup always includes all MDC UMD files in Karma web test suites. Ideally this would not be needed at all, but due to a limitation in `rules_nodejs`, the MDC UMD files cannot be resolved automatically from the `deps`. We could archive this using a custom Bazel rule (confirmed in some experiments that it is possible), but this rule will become quite complex and seem like a bandaid. Eventually the Bazel NodeJS rules should be able to determine named AMD files out-of-the box when installing the node modules.
1 parent e8ff447 commit 2a6d68e

File tree

51 files changed

+715
-1040
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+715
-1040
lines changed

package.json

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"@types/googlemaps": "^3.43.1",
6565
"@types/youtube": "^0.0.42",
6666
"core-js-bundle": "^3.8.2",
67-
"material-components-web": "12.0.0-canary.22d29cbb4.0",
67+
"material-components-web": "12.0.0-canary.5f00e454a.0",
6868
"rxjs": "^6.5.3",
6969
"rxjs-tslint-rules": "^4.33.1",
7070
"systemjs": "0.19.43",
@@ -96,53 +96,53 @@
9696
"@bazel/terser": "4.0.0-beta.0",
9797
"@bazel/typescript": "4.0.0-beta.0",
9898
"@firebase/app-types": "^0.6.1",
99-
"@material/animation": "12.0.0-canary.22d29cbb4.0",
100-
"@material/auto-init": "12.0.0-canary.22d29cbb4.0",
101-
"@material/banner": "12.0.0-canary.22d29cbb4.0",
102-
"@material/base": "12.0.0-canary.22d29cbb4.0",
103-
"@material/button": "12.0.0-canary.22d29cbb4.0",
104-
"@material/card": "12.0.0-canary.22d29cbb4.0",
105-
"@material/checkbox": "12.0.0-canary.22d29cbb4.0",
106-
"@material/chips": "12.0.0-canary.22d29cbb4.0",
107-
"@material/circular-progress": "12.0.0-canary.22d29cbb4.0",
108-
"@material/data-table": "12.0.0-canary.22d29cbb4.0",
109-
"@material/density": "12.0.0-canary.22d29cbb4.0",
110-
"@material/dialog": "12.0.0-canary.22d29cbb4.0",
111-
"@material/dom": "12.0.0-canary.22d29cbb4.0",
112-
"@material/drawer": "12.0.0-canary.22d29cbb4.0",
113-
"@material/elevation": "12.0.0-canary.22d29cbb4.0",
114-
"@material/fab": "12.0.0-canary.22d29cbb4.0",
115-
"@material/feature-targeting": "12.0.0-canary.22d29cbb4.0",
116-
"@material/floating-label": "12.0.0-canary.22d29cbb4.0",
117-
"@material/form-field": "12.0.0-canary.22d29cbb4.0",
118-
"@material/icon-button": "12.0.0-canary.22d29cbb4.0",
119-
"@material/image-list": "12.0.0-canary.22d29cbb4.0",
120-
"@material/layout-grid": "12.0.0-canary.22d29cbb4.0",
121-
"@material/line-ripple": "12.0.0-canary.22d29cbb4.0",
122-
"@material/linear-progress": "12.0.0-canary.22d29cbb4.0",
123-
"@material/list": "12.0.0-canary.22d29cbb4.0",
124-
"@material/menu": "12.0.0-canary.22d29cbb4.0",
125-
"@material/menu-surface": "12.0.0-canary.22d29cbb4.0",
126-
"@material/notched-outline": "12.0.0-canary.22d29cbb4.0",
127-
"@material/radio": "12.0.0-canary.22d29cbb4.0",
128-
"@material/ripple": "12.0.0-canary.22d29cbb4.0",
129-
"@material/rtl": "12.0.0-canary.22d29cbb4.0",
130-
"@material/segmented-button": "12.0.0-canary.22d29cbb4.0",
131-
"@material/select": "12.0.0-canary.22d29cbb4.0",
132-
"@material/shape": "12.0.0-canary.22d29cbb4.0",
133-
"@material/slider": "12.0.0-canary.22d29cbb4.0",
134-
"@material/snackbar": "12.0.0-canary.22d29cbb4.0",
135-
"@material/switch": "12.0.0-canary.22d29cbb4.0",
136-
"@material/tab": "12.0.0-canary.22d29cbb4.0",
137-
"@material/tab-bar": "12.0.0-canary.22d29cbb4.0",
138-
"@material/tab-indicator": "12.0.0-canary.22d29cbb4.0",
139-
"@material/tab-scroller": "12.0.0-canary.22d29cbb4.0",
140-
"@material/textfield": "12.0.0-canary.22d29cbb4.0",
141-
"@material/theme": "12.0.0-canary.22d29cbb4.0",
142-
"@material/tooltip": "12.0.0-canary.22d29cbb4.0",
143-
"@material/top-app-bar": "12.0.0-canary.22d29cbb4.0",
144-
"@material/touch-target": "12.0.0-canary.22d29cbb4.0",
145-
"@material/typography": "12.0.0-canary.22d29cbb4.0",
99+
"@material/animation": "12.0.0-canary.5f00e454a.0",
100+
"@material/auto-init": "12.0.0-canary.5f00e454a.0",
101+
"@material/banner": "12.0.0-canary.5f00e454a.0",
102+
"@material/base": "12.0.0-canary.5f00e454a.0",
103+
"@material/button": "12.0.0-canary.5f00e454a.0",
104+
"@material/card": "12.0.0-canary.5f00e454a.0",
105+
"@material/checkbox": "12.0.0-canary.5f00e454a.0",
106+
"@material/chips": "12.0.0-canary.5f00e454a.0",
107+
"@material/circular-progress": "12.0.0-canary.5f00e454a.0",
108+
"@material/data-table": "12.0.0-canary.5f00e454a.0",
109+
"@material/density": "12.0.0-canary.5f00e454a.0",
110+
"@material/dialog": "12.0.0-canary.5f00e454a.0",
111+
"@material/dom": "12.0.0-canary.5f00e454a.0",
112+
"@material/drawer": "12.0.0-canary.5f00e454a.0",
113+
"@material/elevation": "12.0.0-canary.5f00e454a.0",
114+
"@material/fab": "12.0.0-canary.5f00e454a.0",
115+
"@material/feature-targeting": "12.0.0-canary.5f00e454a.0",
116+
"@material/floating-label": "12.0.0-canary.5f00e454a.0",
117+
"@material/form-field": "12.0.0-canary.5f00e454a.0",
118+
"@material/icon-button": "12.0.0-canary.5f00e454a.0",
119+
"@material/image-list": "12.0.0-canary.5f00e454a.0",
120+
"@material/layout-grid": "12.0.0-canary.5f00e454a.0",
121+
"@material/line-ripple": "12.0.0-canary.5f00e454a.0",
122+
"@material/linear-progress": "12.0.0-canary.5f00e454a.0",
123+
"@material/list": "12.0.0-canary.5f00e454a.0",
124+
"@material/menu": "12.0.0-canary.5f00e454a.0",
125+
"@material/menu-surface": "12.0.0-canary.5f00e454a.0",
126+
"@material/notched-outline": "12.0.0-canary.5f00e454a.0",
127+
"@material/radio": "12.0.0-canary.5f00e454a.0",
128+
"@material/ripple": "12.0.0-canary.5f00e454a.0",
129+
"@material/rtl": "12.0.0-canary.5f00e454a.0",
130+
"@material/segmented-button": "12.0.0-canary.5f00e454a.0",
131+
"@material/select": "12.0.0-canary.5f00e454a.0",
132+
"@material/shape": "12.0.0-canary.5f00e454a.0",
133+
"@material/slider": "12.0.0-canary.5f00e454a.0",
134+
"@material/snackbar": "12.0.0-canary.5f00e454a.0",
135+
"@material/switch": "12.0.0-canary.5f00e454a.0",
136+
"@material/tab": "12.0.0-canary.5f00e454a.0",
137+
"@material/tab-bar": "12.0.0-canary.5f00e454a.0",
138+
"@material/tab-indicator": "12.0.0-canary.5f00e454a.0",
139+
"@material/tab-scroller": "12.0.0-canary.5f00e454a.0",
140+
"@material/textfield": "12.0.0-canary.5f00e454a.0",
141+
"@material/theme": "12.0.0-canary.5f00e454a.0",
142+
"@material/tooltip": "12.0.0-canary.5f00e454a.0",
143+
"@material/top-app-bar": "12.0.0-canary.5f00e454a.0",
144+
"@material/touch-target": "12.0.0-canary.5f00e454a.0",
145+
"@material/typography": "12.0.0-canary.5f00e454a.0",
146146
"@octokit/rest": "18.3.5",
147147
"@rollup/plugin-babel": "^5.3.0",
148148
"@rollup/plugin-commonjs": "^18.0.0",

packages.bzl

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# all in-sync. This map is passed to each ng_package rule to stamp out the appropriate
33
# version for the placeholders.
44
ANGULAR_PACKAGE_VERSION = "^12.0.0 || ^13.0.0-0"
5-
MDC_PACKAGE_VERSION = "12.0.0-canary.22d29cbb4.0"
5+
MDC_PACKAGE_VERSION = "12.0.0-canary.5f00e454a.0"
66
TSLIB_PACKAGE_VERSION = "^2.2.0"
77
RXJS_PACKAGE_VERSION = "^6.5.3"
88

@@ -22,6 +22,42 @@ VERSION_PLACEHOLDER_REPLACEMENTS = {
2222
"0.0.0-RXJS": RXJS_PACKAGE_VERSION,
2323
}
2424

25+
# Map of MDC packages and their UMD bundles. These are used for unit tests and the dev-app.
26+
MDC_PACKAGE_UMD_BUNDLES = {
27+
"@material/animation": "@npm//:node_modules/@material/animation/dist/mdc.animation.js",
28+
"@material/auto-init": "@npm//:node_modules/@material/auto-init/dist/mdc.autoInit.js",
29+
"@material/base": "@npm//:node_modules/@material/base/dist/mdc.base.js",
30+
"@material/checkbox": "@npm//:node_modules/@material/checkbox/dist/mdc.checkbox.js",
31+
"@material/chips": "@npm//:node_modules/@material/chips/dist/mdc.chips.js",
32+
"@material/circular-progress": "@npm//:node_modules/@material/circular-progress/dist/mdc.circularProgress.js",
33+
"@material/data-table": "@npm//:node_modules/@material/data-table/dist/mdc.dataTable.js",
34+
"@material/dialog": "@npm//:node_modules/@material/dialog/dist/mdc.dialog.js",
35+
"@material/dom": "@npm//:node_modules/@material/dom/dist/mdc.dom.js",
36+
"@material/drawer": "@npm//:node_modules/@material/drawer/dist/mdc.drawer.js",
37+
"@material/floating-label": "@npm//:node_modules/@material/floating-label/dist/mdc.floatingLabel.js",
38+
"@material/form-field": "@npm//:node_modules/@material/form-field/dist/mdc.formField.js",
39+
"@material/icon-button": "@npm//:node_modules/@material/icon-button/dist/mdc.iconButton.js",
40+
"@material/line-ripple": "@npm//:node_modules/@material/line-ripple/dist/mdc.lineRipple.js",
41+
"@material/linear-progress": "@npm//:node_modules/@material/linear-progress/dist/mdc.linearProgress.js",
42+
"@material/list": "@npm//:node_modules/@material/list/dist/mdc.list.js",
43+
"@material/menu-surface": "@npm//:node_modules/@material/menu-surface/dist/mdc.menuSurface.js",
44+
"@material/menu": "@npm//:node_modules/@material/menu/dist/mdc.menu.js",
45+
"@material/notched-outline": "@npm//:node_modules/@material/notched-outline/dist/mdc.notchedOutline.js",
46+
"@material/radio": "@npm//:node_modules/@material/radio/dist/mdc.radio.js",
47+
"@material/ripple": "@npm//:node_modules/@material/ripple/dist/mdc.ripple.js",
48+
"@material/select": "@npm//:node_modules/@material/select/dist/mdc.select.js",
49+
"@material/slider": "@npm//:node_modules/@material/slider/dist/mdc.slider.js",
50+
"@material/snackbar": "@npm//:node_modules/@material/snackbar/dist/mdc.snackbar.js",
51+
"@material/switch": "@npm//:node_modules/@material/switch/dist/mdc.switch.js",
52+
"@material/tab-bar": "@npm//:node_modules/@material/tab-bar/dist/mdc.tabBar.js",
53+
"@material/tab-indicator": "@npm//:node_modules/@material/tab-indicator/dist/mdc.tabIndicator.js",
54+
"@material/tab-scroller": "@npm//:node_modules/@material/tab-scroller/dist/mdc.tabScroller.js",
55+
"@material/tab": "@npm//:node_modules/@material/tab/dist/mdc.tab.js",
56+
"@material/textfield": "@npm//:node_modules/@material/textfield/dist/mdc.textfield.js",
57+
"@material/tooltip": "@npm//:node_modules/@material/tooltip/dist/mdc.tooltip.js",
58+
"@material/top-app-bar": "@npm//:node_modules/@material/top-app-bar/dist/mdc.topAppBar.js",
59+
}
60+
2561
# List of default Angular library UMD bundles which are not processed by ngcc.
2662
ANGULAR_NO_NGCC_BUNDLES = [
2763
("@angular/compiler", ["compiler.umd.js"]),

rollup-globals.bzl

Lines changed: 13 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ load(
66
"MATERIAL_EXPERIMENTAL_ENTRYPOINTS",
77
"MATERIAL_EXPERIMENTAL_TESTING_ENTRYPOINTS",
88
)
9+
load("//:packages.bzl", "MDC_PACKAGE_UMD_BUNDLES")
910

1011
# Base rollup globals for everything in the repo. Note that we want to disable
1112
# sorting of the globals as we manually group dict entries.
@@ -36,42 +37,9 @@ ROLLUP_GLOBALS = {
3637
"@angular/material-moment-adapter": "ng.materialMomentAdapter",
3738
"@angular/youtube-player": "ng.youtubePlayer",
3839

39-
# MDC Web
40-
"@material/animation": "mdc.animation",
41-
"@material/auto-init": "mdc.autoInit",
42-
"@material/base": "mdc.base",
4340
# This UMD module name would not match with anything that MDC provides, but we just
4441
# add this to make the linter happy. This module resolves to a type-only file anyways.
4542
"@material/base/types": "mdc.base.types",
46-
"@material/checkbox": "mdc.checkbox",
47-
"@material/circular-progress": "mdc.circularProgress",
48-
"@material/chips": "mdc.chips",
49-
"@material/dialog": "mdc.dialog",
50-
"@material/dom": "mdc.dom",
51-
"@material/drawer": "mdc.drawer",
52-
"@material/floating-label": "mdc.floatingLabel",
53-
"@material/form-field": "mdc.formField",
54-
"@material/grid-list": "mdc.gridList",
55-
"@material/icon-button": "mdc.iconButton",
56-
"@material/line-ripple": "mdc.lineRipple",
57-
"@material/linear-progress": "mdc.linearProgress",
58-
"@material/list": "mdc.list",
59-
"@material/menu": "mdc.menu",
60-
"@material/menu-surface": "mdc.menuSurface",
61-
"@material/notched-outline": "mdc.notchedOutline",
62-
"@material/radio": "mdc.radio",
63-
"@material/ripple": "mdc.ripple",
64-
"@material/select": "mdc.select",
65-
"@material/slider": "mdc.slider",
66-
"@material/snackbar": "mdc.snackbar",
67-
"@material/switch": "mdc.switch",
68-
"@material/tab": "mdc.tab",
69-
"@material/tab-bar": "mdc.tabBar",
70-
"@material/tab-indicator": "mdc.tabIndicator",
71-
"@material/tab-scroller": "mdc.tabScroller",
72-
"@material/textfield": "mdc.textfield",
73-
"@material/tooltip": "mdc.tooltip",
74-
"@material/top-app-bar": "mdc.topAppBar",
7543

7644
# Third-party libraries.
7745
"kagekiri": "kagekiri",
@@ -85,15 +53,23 @@ ROLLUP_GLOBALS = {
8553
}
8654

8755
# Converts a string from dash-case to lower camel case.
88-
def to_camel_case(input):
56+
def to_lower_camel_case(input):
8957
segments = input.split("-")
9058
return segments[0] + "".join([x.title() for x in segments[1:]])
9159

60+
# Configures the rollup globals for all MDC packages.
61+
def setup_mdc_globals():
62+
for pkg_name in MDC_PACKAGE_UMD_BUNDLES:
63+
entry_point_name = pkg_name[len("@material/"):]
64+
pkg_umd_name = "mdc.%s" % to_lower_camel_case(entry_point_name)
65+
66+
ROLLUP_GLOBALS.update({pkg_name: pkg_umd_name})
67+
9268
# Converts an entry-point name to a UMD module name.
9369
# e.g. "snack-bar/testing" will become "snackBar.testing".
9470
def to_umd_name(name):
9571
segments = name.split("/")
96-
return ".".join([to_camel_case(x) for x in segments])
72+
return ".".join([to_lower_camel_case(x) for x in segments])
9773

9874
# Creates globals for a given package and its entry-points.
9975
def create_globals(packageName, entryPoints):
@@ -102,6 +78,8 @@ def create_globals(packageName, entryPoints):
10278
for ep in entryPoints
10379
})
10480

81+
setup_mdc_globals()
82+
10583
create_globals("cdk", CDK_ENTRYPOINTS)
10684
create_globals("cdk-experimental", CDK_EXPERIMENTAL_ENTRYPOINTS)
10785
create_globals("material", MATERIAL_ENTRYPOINTS + MATERIAL_TESTING_ENTRYPOINTS)

src/dev-app/BUILD.bazel

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
load("@npm//@angular/dev-infra-private/bazel:extract_js_module_output.bzl", "extract_js_module_output")
22
load("@build_bazel_rules_nodejs//:index.bzl", "pkg_web")
3+
load("//:packages.bzl", "MDC_PACKAGE_UMD_BUNDLES")
34
load("//tools:create-system-config.bzl", "create_system_config")
45
load("//tools:defaults.bzl", "ng_module", "sass_binary")
56
load("//tools/dev-server:index.bzl", "dev_server")
@@ -142,45 +143,13 @@ filegroup(
142143
":variables",
143144
"//src/dev-app/icon:icon_demo_assets",
144145
"//tools:system-rxjs-operators.js",
145-
"@npm//:node_modules/@material/animation/dist/mdc.animation.js",
146-
"@npm//:node_modules/@material/auto-init/dist/mdc.autoInit.js",
147-
"@npm//:node_modules/@material/base/dist/mdc.base.js",
148-
"@npm//:node_modules/@material/checkbox/dist/mdc.checkbox.js",
149-
"@npm//:node_modules/@material/chips/dist/mdc.chips.js",
150-
"@npm//:node_modules/@material/circular-progress/dist/mdc.circularProgress.js",
151-
"@npm//:node_modules/@material/data-table/dist/mdc.dataTable.js",
152-
"@npm//:node_modules/@material/dialog/dist/mdc.dialog.js",
153-
"@npm//:node_modules/@material/dom/dist/mdc.dom.js",
154-
"@npm//:node_modules/@material/drawer/dist/mdc.drawer.js",
155-
"@npm//:node_modules/@material/floating-label/dist/mdc.floatingLabel.js",
156-
"@npm//:node_modules/@material/form-field/dist/mdc.formField.js",
157-
"@npm//:node_modules/@material/icon-button/dist/mdc.iconButton.js",
158-
"@npm//:node_modules/@material/line-ripple/dist/mdc.lineRipple.js",
159-
"@npm//:node_modules/@material/linear-progress/dist/mdc.linearProgress.js",
160-
"@npm//:node_modules/@material/list/dist/mdc.list.js",
161-
"@npm//:node_modules/@material/menu-surface/dist/mdc.menuSurface.js",
162-
"@npm//:node_modules/@material/menu/dist/mdc.menu.js",
163-
"@npm//:node_modules/@material/notched-outline/dist/mdc.notchedOutline.js",
164-
"@npm//:node_modules/@material/radio/dist/mdc.radio.js",
165-
"@npm//:node_modules/@material/ripple/dist/mdc.ripple.js",
166-
"@npm//:node_modules/@material/select/dist/mdc.select.js",
167-
"@npm//:node_modules/@material/slider/dist/mdc.slider.js",
168-
"@npm//:node_modules/@material/snackbar/dist/mdc.snackbar.js",
169-
"@npm//:node_modules/@material/switch/dist/mdc.switch.js",
170-
"@npm//:node_modules/@material/tab-bar/dist/mdc.tabBar.js",
171-
"@npm//:node_modules/@material/tab-indicator/dist/mdc.tabIndicator.js",
172-
"@npm//:node_modules/@material/tab-scroller/dist/mdc.tabScroller.js",
173-
"@npm//:node_modules/@material/tab/dist/mdc.tab.js",
174-
"@npm//:node_modules/@material/textfield/dist/mdc.textfield.js",
175-
"@npm//:node_modules/@material/tooltip/dist/mdc.tooltip.js",
176-
"@npm//:node_modules/@material/top-app-bar/dist/mdc.topAppBar.js",
177146
"@npm//:node_modules/core-js-bundle/index.js",
178147
"@npm//:node_modules/moment/min/moment-with-locales.min.js",
179148
"@npm//:node_modules/rxjs/bundles/rxjs.umd.min.js",
180149
"@npm//:node_modules/systemjs/dist/system.js",
181150
"@npm//:node_modules/tslib/tslib.js",
182151
"@npm//:node_modules/zone.js/dist/zone.js",
183-
],
152+
] + MDC_PACKAGE_UMD_BUNDLES.values(),
184153
)
185154

186155
dev_server(

src/e2e-app/devserver-configure.js

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,5 @@ require.config({
66

77
// Support for lazy-loading of component examples.
88
'@angular/components-examples': 'angular_material/src/components-examples',
9-
10-
// MDC Web
11-
'@material/animation': '@material/animation/dist/mdc.animation',
12-
'@material/auto-init': '@material/auto-init/dist/mdc.autoInit',
13-
'@material/base': '@material/base/dist/mdc.base',
14-
'@material/checkbox': '@material/checkbox/dist/mdc.checkbox',
15-
'@material/chips': '@material/chips/dist/mdc.chips',
16-
'@material/circular-progress': '@material/circular-progress/dist/mdc.circularProgress',
17-
'@material/dialog': '@material/dialog/dist/mdc.dialog',
18-
'@material/dom': '@material/dom/dist/mdc.dom',
19-
'@material/drawer': '@material/drawer/dist/mdc.drawer',
20-
'@material/floating-label': '@material/floating-label/dist/mdc.floatingLabel',
21-
'@material/form-field': '@material/form-field/dist/mdc.formField',
22-
'@material/grid-list': '@material/grid-list/dist/mdc.gridList',
23-
'@material/icon-button': '@material/icon-button/dist/mdc.iconButton',
24-
'@material/line-ripple': '@material/line-ripple/dist/mdc.lineRipple',
25-
'@material/linear-progress': '@material/linear-progress/dist/mdc.linearProgress',
26-
'@material/list': '@material/list/dist/mdc.list',
27-
'@material/menu': '@material/menu/dist/mdc.menu',
28-
'@material/menu-surface': '@material/menu-surface/dist/mdc.menuSurface',
29-
'@material/notched-outline': '@material/notched-outline/dist/mdc.notchedOutline',
30-
'@material/radio': '@material/radio/dist/mdc.radio',
31-
'@material/ripple': '@material/ripple/dist/mdc.ripple',
32-
'@material/select': '@material/select/dist/mdc.select',
33-
'@material/slider': '@material/slider/dist/mdc.slider',
34-
'@material/snackbar': '@material/snackbar/dist/mdc.snackbar',
35-
'@material/switch': '@material/switch/dist/mdc.switch',
36-
'@material/tab': '@material/tab/dist/mdc.tab',
37-
'@material/tab-bar': '@material/tab-bar/dist/mdc.tabBar',
38-
'@material/tab-indicator': '@material/tab-indicator/dist/mdc.tabIndicator',
39-
'@material/tab-scroller': '@material/tab-scroller/dist/mdc.tabScroller',
40-
'@material/textfield': '@material/textfield/dist/mdc.textfield',
41-
'@material/tooltip': '@material/tooltip/dist/mdc.tooltip',
42-
'@material/top-app-bar': '@material/top-app-bar/dist/mdc.topAppBar',
439
}
4410
});

src/material-experimental/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ load("//tools:defaults.bzl", "ng_package", "sass_library", "ts_library")
88

99
package(default_visibility = ["//visibility:public"])
1010

11-
exports_files(["mdc_require_config.js"])
12-
1311
ts_library(
1412
name = "material-experimental",
1513
srcs = glob(

src/material-experimental/mdc-autocomplete/BUILD.bazel

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,7 @@ ng_test_library(
7171

7272
ng_web_test_suite(
7373
name = "unit_tests",
74-
static_files = [
75-
"@npm//:node_modules/@material/textfield/dist/mdc.textfield.js",
76-
"@npm//:node_modules/@material/line-ripple/dist/mdc.lineRipple.js",
77-
"@npm//:node_modules/@material/notched-outline/dist/mdc.notchedOutline.js",
78-
"@npm//:node_modules/@material/dom/dist/mdc.dom.js",
79-
],
8074
deps = [
8175
":mdc_autocomplete_tests_lib",
82-
"//src/material-experimental:mdc_require_config.js",
8376
],
8477
)

src/material-experimental/mdc-button/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,8 @@ ng_test_library(
104104

105105
ng_web_test_suite(
106106
name = "unit_tests",
107-
static_files = ["@npm//:node_modules/@material/ripple/dist/mdc.ripple.js"],
108107
deps = [
109108
":button_tests_lib",
110-
"//src/material-experimental:mdc_require_config.js",
111109
],
112110
)
113111

src/material-experimental/mdc-button/testing/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ ng_test_library(
2727

2828
ng_web_test_suite(
2929
name = "unit_tests",
30-
static_files = ["@npm//:node_modules/@material/ripple/dist/mdc.ripple.js"],
3130
deps = [
3231
":unit_tests_lib",
33-
"//src/material-experimental:mdc_require_config.js",
3432
],
3533
)

0 commit comments

Comments
 (0)