{"record":{"id":"d2644fb61f52e88d","repo":"angular/angular-cli","slug":"the-angular-devkit-build-angular-browser-esbuild","errorCode":null,"errorMessage":"The \"@angular-devkit/build-angular:browser-esbuild\" builder is deprecated as part of Angular's Webpack support deprecation. Use \"@angular/build:application\" instead. For more information, see https://angular.dev/tools/cli/build-system-migration.","messagePattern":"The \"@angular-devkit/build-angular:browser-esbuild\" builder is deprecated as part of Angular's Webpack support deprecation\\. Use \"@angular/build:application\" instead\\. For more information, see https://angular\\.dev/tools/cli/build-system-migration\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"packages/angular_devkit/build_angular/src/builders/browser-esbuild/index.ts","lineNumber":33,"sourceCode":"\ntype OutputPathClass = Exclude<ApplicationBuilderOptions['outputPath'], string | undefined>;\n\n/**\n * Main execution function for the esbuild-based application builder.\n * The options are compatible with the Webpack-based builder.\n * @param userOptions The browser builder options to use when setting up the application build\n * @param context The Architect builder context object\n * @returns An async iterable with the builder result output\n */\nexport async function* buildEsbuildBrowser(\n  userOptions: BrowserBuilderOptions,\n  context: BuilderContext,\n  infrastructureSettings?: {\n    write?: boolean;\n  },\n  plugins?: Plugin[],\n): AsyncIterable<BuilderOutput> {\n  context.logger.warn(\n    'The \"@angular-devkit/build-angular:browser-esbuild\" builder is deprecated as part of Angular\\'s Webpack support deprecation. ' +\n      'Use \"@angular/build:application\" instead. For more information, see https://angular.dev/tools/cli/build-system-migration.',\n  );\n\n  // Warn about any unsupported options\n  if (userOptions['vendorChunk']) {\n    context.logger.warn(\n      `The 'vendorChunk' option is not used by this builder and will be ignored.`,\n    );\n  }\n  if (userOptions['commonChunk'] === false) {\n    context.logger.warn(\n      `The 'commonChunk' option is always enabled by this builder and will be ignored.`,\n    );\n  }\n  if (userOptions['webWorkerTsConfig']) {\n    context.logger.warn(`The 'webWorkerTsConfig' option is not yet supported by this builder.`);\n  }","sourceCodeStart":15,"sourceCodeEnd":51,"githubUrl":"https://github.com/angular/angular-cli/blob/bb72145f9ab45aee29f523236b3a25cd0813a841/packages/angular_devkit/build_angular/src/builders/browser-esbuild/index.ts#L15-L51","documentation":"The `@angular-devkit/build-angular:browser-esbuild` builder (the transitional esbuild browser builder in the Webpack package) is deprecated along with Angular's Webpack support. Running it warns users to migrate to the maintained `@angular/build:application` builder.","triggerScenarios":"Running a build target configured with `\"builder\": \"@angular-devkit/build-angular:browser-esbuild\"` in `angular.json`, or calling `buildEsbuildBrowser` programmatically.","commonSituations":"Projects that adopted the early esbuild integration inside `@angular-devkit/build-angular` and haven't migrated to the standalone `@angular/build` package after upgrading Angular.","solutions":["Run the automated build-system migration: `ng generate @angular/build:apply-build-system-migration`.","Change `angular.json` to use `\"builder\": \"@angular/build:application\"` and migrate options (e.g. drop Webpack-only options like `vendorChunk`).","Remove plugin/Webpack-specific workarounds that the new builder doesn't need, then rebuild and compare output."],"exampleFix":"// before (angular.json)\n\"builder\": \"@angular-devkit/build-angular:browser-esbuild\"\n// after\n\"builder\": \"@angular/build:application\"","handlingStrategy":"validation","validationCode":"// detect transitional esbuild browser builder in angular.json\nconst arch = require('./angular.json');\nif (JSON.stringify(arch).includes('browser-esbuild')) {\n  throw new Error('Use @angular/build:application instead of @angular-devkit/build-angular:browser-esbuild');\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Migrate to `@angular/build:application` as soon as the option appears.","Drop Webpack-only options (vendorChunk, etc.) during migration.","Track Angular deprecation notices in release notes each upgrade."],"tags":["deprecation","webpack","esbuild","build"],"backgroundTag":"webpack-builder-deprecated","analyzedSha":"bb72145f9ab45aee29f523236b3a25cd0813a841","analyzedAt":"2026-08-30T02:47:34.745Z","schemaVersion":2},"datasetVersion":"2026-08-30T08:17:16.595Z"}