hunk.code_window: last 2 Edge major versions
   last 2 Safari major version
   last 2 iOS major versions
   Firefox ESR<% if (legacyBrowsers) { %>
   IE 9-11<% } else { %>
   not IE 9-11 # For IE 9-11 support, remove 'not'.<% } %>
  
hunk.labels: keep keep keep keep replace replace
hunk.after_edit: IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11.
   IE 11<% } else { %>
   not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
   not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.<% } %>
hunk.file_path: packages/schematics/angular/application/files/.browserslistrc.template
hunk.type: replace
file: import { join } from 'path';
  import { getGlobalVariable } from '../utils/env';
  import { expectFileToExist } from '../utils/fs';
  import { gitClean } from '../utils/git';
  import { ng } from '../utils/process';
  import { prepareProjectForE2e, updateJsonFile } from '../utils/project';
  
  export default async function() {
    const argv = getGlobalVariable('argv');
  
    if (argv.noproject) {
      return;
    }
  
    if (argv.reuse) {
      process.chdir(argv.reuse);
      await gitClean();
    } else {
      const extraArgs = [];
  
      await ng('new', 'test-project', '--skip-install', ...extraArgs);
      await expectFileToExist(join(process.cwd(), 'test-project'));
      process.chdir('./test-project');
  
      if (argv['ve']) {
        await updateJsonFile('tsconfig.base.json', config => {
          const { angularCompilerOptions = {} } = config;
          angularCompilerOptions.enableIvy = false;
          config.angularCompilerOptions = angularCompilerOptions;
        });
  
        // In VE non prod builds are non AOT by default
        await updateJsonFile('angular.json', config => {
          const build = config.projects['test-project'].architect.build;
          build.options.aot = false;
          build.configurations.production.aot = true;
        });
      }
    }
  
    await prepareProjectForE2e('test-project');
    await ng('version');
  }
  