hunk.code_window:     // still no _entryModule? => try to resolve from mainPath
       if (!this._entryModule && options.mainPath) {
         this._entryModule = resolveEntryModuleFromMain(options.mainPath, this._compilerHost,
           this._program);
       }
       if (options.hasOwnProperty('i18nFile')) {
         this._i18nFile = options.i18nFile;
       }
  
hunk.labels: keep keep keep replace replace keep keep keep keep keep
hunk.after_edit:       const mainPath = path.resolve(basePath, options.mainPath);
         this._entryModule = resolveEntryModuleFromMain(mainPath, this._compilerHost, this._program);
  
hunk.file_path: packages/@ngtools/webpack/src/plugin.ts
hunk.type: replace
file: import { ng } from '../../utils/process';
  import { readFile, writeFile } from '../../utils/fs';
  
  export default function () {
    const fileName = 'src/app/foo.ts';
  
    return Promise.resolve()
      .then(() => writeFile(fileName, 'const foo = "";\n'))
      .then(() => ng('lint', '--fix', '--force'))
      .then(() => readFile(fileName))
      .then(content => {
        if (!content.match(/const foo = '';/)) {
          throw new Error(`Expected to match "const foo = '';" in ${content}.`);
        }
      });
  }
  