@@ -254,25 +254,28 @@ describe('build-optimizer', () => {
254
254
} ) ;
255
255
} ) ;
256
256
257
- describe ( 'whitelisted modules' , ( ) => {
258
- // This statement is considered pure by getPrefixFunctionsTransformer on whitelisted modules.
257
+ describe ( 'known side effect free modules' , ( ) => {
258
+ // This statement is considered pure by getPrefixFunctionsTransformer on known side effect free
259
+ // modules.
259
260
const input = 'console.log(42);' ;
260
261
const output = '/*@__PURE__*/ console.log(42);' ;
261
262
262
- it ( 'should process whitelisted modules' , ( ) => {
263
+ it ( 'should process known side effect free modules' , ( ) => {
263
264
const inputFilePath = '/node_modules/@angular/core/@angular/core.es5.js' ;
264
265
const boOutput = buildOptimizer ( { content : input , inputFilePath } ) ;
265
266
expect ( boOutput . content ) . toContain ( output ) ;
266
267
expect ( boOutput . emitSkipped ) . toEqual ( false ) ;
267
268
} ) ;
268
269
269
- it ( 'should not process non-whitelisted modules' , ( ) => {
270
+ it ( 'should not process modules which are not in the list of known side effect free modules' ,
271
+ ( ) => {
270
272
const inputFilePath = '/node_modules/other-package/core.es5.js' ;
271
273
const boOutput = buildOptimizer ( { content : input , inputFilePath } ) ;
272
274
expect ( boOutput . emitSkipped ) . toEqual ( true ) ;
273
275
} ) ;
274
276
275
- it ( 'should not process non-whitelisted umd modules' , ( ) => {
277
+ it ( 'should not process umd modules which are not in the list of known side effect free modules' ,
278
+ ( ) => {
276
279
const inputFilePath = '/node_modules/other_lib/index.js' ;
277
280
const boOutput = buildOptimizer ( { content : input , inputFilePath } ) ;
278
281
expect ( boOutput . emitSkipped ) . toEqual ( true ) ;
0 commit comments