@@ -66,7 +66,7 @@ const MASTER_PACKAGE_JSON = require(path.resolve(MASTER_PACKAGE_JSON_RELATIVE_PA
6666// These few MDC packages work as foundation or utility packages, and are not
6767// directly included in webpack or the material-component-web module. But they
6868// are necessary since other MDC packages depend on them.
69- const CSS_WHITELIST = new Set ( [
69+ const CSS_EXCLUDES = new Set ( [
7070 'base' ,
7171 'animation' ,
7272 'auto-init' ,
@@ -79,7 +79,7 @@ const CSS_WHITELIST = new Set([
7979 'touch-target' ,
8080] ) ;
8181
82- const JS_WHITELIST = new Set ( [
82+ const JS_EXCLUDES = new Set ( [
8383 'animation' ,
8484 'progress-indicator' ,
8585] ) ;
@@ -134,7 +134,7 @@ function checkDependencyAddedInWebpackConfig() {
134134
135135function checkJSDependencyAddedInWebpackConfig ( ) {
136136 const name = getPkgName ( ) ;
137- if ( JS_WHITELIST . has ( name ) ) {
137+ if ( JS_EXCLUDES . has ( name ) ) {
138138 return ;
139139 }
140140
@@ -150,7 +150,7 @@ function checkJSDependencyAddedInWebpackConfig() {
150150
151151function checkCSSDependencyAddedInWebpackConfig ( ) {
152152 const name = getPkgName ( ) ;
153- if ( CSS_WHITELIST . has ( name ) ) {
153+ if ( CSS_EXCLUDES . has ( name ) ) {
154154 return ;
155155 }
156156
@@ -177,7 +177,7 @@ function checkDependencyAddedInMDCPackage() {
177177
178178function checkPkgDependencyAddedInMDCPackage ( ) {
179179 const name = getPkgName ( ) ;
180- if ( CSS_WHITELIST . has ( name ) && JS_WHITELIST . has ( name ) ) {
180+ if ( CSS_EXCLUDES . has ( name ) && JS_EXCLUDES . has ( name ) ) {
181181 return ;
182182 }
183183
@@ -190,7 +190,7 @@ function checkPkgDependencyAddedInMDCPackage() {
190190function checkCSSDependencyAddedInMDCPackage ( ) {
191191 const name = getPkgName ( ) ;
192192 const nameMDC = `mdc-${ name } ` ;
193- if ( CSS_WHITELIST . has ( name ) ) {
193+ if ( CSS_EXCLUDES . has ( name ) ) {
194194 return ;
195195 }
196196
@@ -207,7 +207,7 @@ function checkCSSDependencyAddedInMDCPackage() {
207207
208208function checkJSDependencyAddedInMDCPackage ( ) {
209209 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 ) ) {
211211 return ;
212212 }
213213
0 commit comments