hunk.code_window:   }
     // Create reverse lookup used during index HTML generation
     const entryPointNameLookup: ReadonlyMap<string, string> = new Map(
       Object.entries(entryPoints).map(
         ([name, filePath]) => [path.relative(workspaceRoot, filePath), name] as const,
       ),
     );
     const [codeResults, styleResults] = await Promise.all([
       // Execute esbuild to bundle the application code
       bundleCode(
  
hunk.labels: keep replace replace replace replace replace replace keep keep keep keep
hunk.file_path: packages/angular_devkit/build_angular/src/builders/browser-esbuild/index.ts
hunk.type: replace
file: import fetch from 'node-fetch';
  import { ngServe } from '../../../utils/project';
  
  export default async function () {
    const port = await ngServe();
    const { size, status } = await fetch(`http://localhost:${port}/main.js`, { method: 'OPTIONS' });
  
    if (size !== 0) {
      throw new Error(`Expected "size" to be "0" but got "${size}".`);
    }
  
    if (status !== 204) {
      throw new Error(`Expected "status" to be "204" but got "${status}".`);
    }
  }
  