hunk.code_window:   const {
       projectRoot,
       workspaceRoot,
       mainEntryPoint,
       polyfillsEntryPoint,
       optimizationOptions,
       outputPath,
       sourcemapOptions,
       tsconfig,
       assets,
  
hunk.labels: keep keep keep replace replace keep keep keep keep keep
hunk.after_edit:     entryPoints,
       entryPointNameLookup,
  
hunk.file_path: packages/angular_devkit/build_angular/src/builders/browser-esbuild/index.ts
hunk.type: replace
file: import {
    killAllProcesses,
    waitForAnyProcessOutputToMatch,
    execAndWaitForOutputToMatch,
  } from '../../utils/process';
  import { writeFile, prependToFile } from '../../utils/fs';
  import { getGlobalVariable } from '../../utils/env';
  
  const successRe = / Compiled successfully/;
  
  export default async function () {
    // TODO(architect): Delete this test. It is now in devkit/build-angular.
  
    if (process.platform.startsWith('win')) {
      return;
    }
  
    await writeFile('src/app/type.ts', `export type MyType = number;`);
    await prependToFile('src/app/app.component.ts', 'import { MyType } from "./type";\n');
  
    try {
      await execAndWaitForOutputToMatch('ng', ['serve'], successRe);
  
      await Promise.all([
        waitForAnyProcessOutputToMatch(successRe, 20000),
        writeFile('src/app/type.ts', `export type MyType = string;`),
      ]);
    } finally {
      await killAllProcesses();
    }
  }
  