hunk.code_window:   // Enable Differential loading to run both size checks
     await replaceInFile(
       '.browserslistrc',
       'not IE 9-11',
       'IE 9-11',
     );
     await ng('build', '--aot=false');
     // files were created successfully
     await expectFileToMatch('dist/test-project/polyfills-es5.js', 'core-js/proposals/reflect-metadata');
  
hunk.labels: keep keep keep replace replace keep keep keep keep keep
hunk.after_edit:     'not IE 11',
       'IE 11',
  
hunk.file_path: tests/legacy-cli/e2e/tests/build/polyfills.ts
hunk.type: replace
file: import { appendToFile, createDir, moveFile, prependToFile } from '../../utils/fs';
  import { ng, silentNpm } from '../../utils/process';
  import { updateJsonFile } from '../../utils/project';
  import { expectToFail } from '../../utils/utils';
  
  
  export default async function () {
    await updateJsonFile('tsconfig.base.json', tsconfig => {
      tsconfig.compilerOptions.paths = {
        '*': ['./node_modules/*'],
      };
    });
    await ng('build');
  
    await createDir('xyz');
    await moveFile(
      'node_modules/@angular/common',
      'xyz/common',
    );
  
    await expectToFail(() => ng('build'));
  
    await updateJsonFile('tsconfig.base.json', tsconfig => {
      tsconfig.compilerOptions.paths = {
        '@angular/common': [ './xyz/common' ],
      };
    });
    await ng('build');
  
    await updateJsonFile('tsconfig.base.json', tsconfig => {
      tsconfig.compilerOptions.paths = {
        '*': ['./node_modules/*'],
        '@angular/common': [ './xyz/common' ],
      };
    });
    await ng('build');
  
    await updateJsonFile('tsconfig.base.json', tsconfig => {
      tsconfig.compilerOptions.paths = {
        '@angular/common': [ './xyz/common' ],
        '*': ['./node_modules/*'],
      };
    });
    await ng('build');
  
    await updateJsonFile('tsconfig.base.json', tsconfig => {
      delete tsconfig.compilerOptions.paths;
    });
  
    await prependToFile('src/app/app.module.ts', 'import * as firebase from \'firebase\';');
    await appendToFile('src/app/app.module.ts', 'firebase.initializeApp({});');
  
    await silentNpm('install', 'firebase@3.7.8');
    await ng('build', '--aot');
    await ng('test', '--watch=false');
  
    await silentNpm('install', 'firebase@4.9.0');
    await ng('build', '--aot');
    await ng('test', '--watch=false');
  
    await updateJsonFile('tsconfig.base.json', tsconfig => {
      tsconfig.compilerOptions.paths = {};
    });
    await ng('build');
  
    await updateJsonFile('tsconfig.base.json', tsconfig => {
      tsconfig.compilerOptions.paths = {
        '@app/*': ['*'],
        '@lib/*/test': ['*/test'],
      };
    });
    await ng('build');
  
    await updateJsonFile('tsconfig.base.json', tsconfig => {
      tsconfig.compilerOptions.paths = {
        '@firebase/polyfill': ['./node_modules/@firebase/polyfill/index.ts'],
      };
    });
    await expectToFail(() => ng('build'));
  
    await updateJsonFile('tsconfig.base.json', tsconfig => {
      tsconfig.compilerOptions.paths = {
        '@firebase/polyfill*': ['./node_modules/@firebase/polyfill/index.ts'],
      };
    });
    await expectToFail(() => ng('build'));
  }
  