@@ -66,7 +66,7 @@ const MASTER_PACKAGE_JSON = require(path.resolve(MASTER_PACKAGE_JSON_RELATIVE_PA
66
66
// These few MDC packages work as foundation or utility packages, and are not
67
67
// directly included in webpack or the material-component-web module. But they
68
68
// are necessary since other MDC packages depend on them.
69
- const CSS_WHITELIST = new Set ( [
69
+ const CSS_EXCLUDES = new Set ( [
70
70
'base' ,
71
71
'animation' ,
72
72
'auto-init' ,
@@ -79,7 +79,7 @@ const CSS_WHITELIST = new Set([
79
79
'touch-target' ,
80
80
] ) ;
81
81
82
- const JS_WHITELIST = new Set ( [
82
+ const JS_EXCLUDES = new Set ( [
83
83
'animation' ,
84
84
'progress-indicator' ,
85
85
] ) ;
@@ -134,7 +134,7 @@ function checkDependencyAddedInWebpackConfig() {
134
134
135
135
function checkJSDependencyAddedInWebpackConfig ( ) {
136
136
const name = getPkgName ( ) ;
137
- if ( JS_WHITELIST . has ( name ) ) {
137
+ if ( JS_EXCLUDES . has ( name ) ) {
138
138
return ;
139
139
}
140
140
@@ -150,7 +150,7 @@ function checkJSDependencyAddedInWebpackConfig() {
150
150
151
151
function checkCSSDependencyAddedInWebpackConfig ( ) {
152
152
const name = getPkgName ( ) ;
153
- if ( CSS_WHITELIST . has ( name ) ) {
153
+ if ( CSS_EXCLUDES . has ( name ) ) {
154
154
return ;
155
155
}
156
156
@@ -177,7 +177,7 @@ function checkDependencyAddedInMDCPackage() {
177
177
178
178
function checkPkgDependencyAddedInMDCPackage ( ) {
179
179
const name = getPkgName ( ) ;
180
- if ( CSS_WHITELIST . has ( name ) && JS_WHITELIST . has ( name ) ) {
180
+ if ( CSS_EXCLUDES . has ( name ) && JS_EXCLUDES . has ( name ) ) {
181
181
return ;
182
182
}
183
183
@@ -190,7 +190,7 @@ function checkPkgDependencyAddedInMDCPackage() {
190
190
function checkCSSDependencyAddedInMDCPackage ( ) {
191
191
const name = getPkgName ( ) ;
192
192
const nameMDC = `mdc-${ name } ` ;
193
- if ( CSS_WHITELIST . has ( name ) ) {
193
+ if ( CSS_EXCLUDES . has ( name ) ) {
194
194
return ;
195
195
}
196
196
@@ -207,7 +207,7 @@ function checkCSSDependencyAddedInMDCPackage() {
207
207
208
208
function checkJSDependencyAddedInMDCPackage ( ) {
209
209
const name = getPkgName ( ) ;
210
- if ( typeof ( CLI_PACKAGE_JSON . main ) === 'undefined' || JS_WHITELIST . has ( name ) ) {
210
+ if ( typeof ( CLI_PACKAGE_JSON . main ) === 'undefined' || JS_EXCLUDES . has ( name ) ) {
211
211
return ;
212
212
}
213
213
0 commit comments