{"record":{"id":"76adb3da7c1c1121","repo":"angular/angular-cli","slug":"the-angular-devkit-build-webpack-webpack-builde","errorCode":null,"errorMessage":"The \"@angular-devkit/build-webpack:webpack\" builder is deprecated as part of Angular's Webpack support deprecation. Use \"@angular/build\" instead.","messagePattern":"The \"@angular-devkit/build-webpack:webpack\" builder is deprecated as part of Angular's Webpack support deprecation\\. Use \"@angular/build\" instead\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"packages/angular_devkit/build_webpack/src/builders/webpack/index.ts","lineNumber":132,"sourceCode":"            } else {\n              webpackCompiler.run(callback);\n            }\n          } catch (err) {\n            if (err) {\n              context.logger.error(\n                `\\nAn error occurred during the build:\\n${err instanceof Error ? err.stack : err}`,\n              );\n            }\n            throw err;\n          }\n        }),\n    ),\n  );\n}\n\nconst builder: Builder<WebpackBuilderSchema> = createBuilder<WebpackBuilderSchema>(\n  (options, context) => {\n    context.logger.warn(\n      'The \"@angular-devkit/build-webpack:webpack\" builder is deprecated as part of Angular\\'s Webpack support deprecation. ' +\n        'Use \"@angular/build\" instead.',\n    );\n\n    const configPath = pathResolve(context.workspaceRoot, options.webpackConfig);\n\n    return from(getWebpackConfig(configPath)).pipe(\n      switchMap((config) => runWebpack(config, context)),\n    );\n  },\n);\n\nexport default builder;\n","sourceCodeStart":114,"sourceCodeEnd":146,"githubUrl":"https://github.com/angular/angular-cli/blob/bb72145f9ab45aee29f523236b3a25cd0813a841/packages/angular_devkit/build_webpack/src/builders/webpack/index.ts#L114-L146","documentation":"The @angular-devkit/build-webpack:webpack builder emits a deprecation warning on every execution as part of Angular's Webpack support deprecation. Users are directed to the new \"@angular/build\" package.","triggerScenarios":"Any build target using \"builder\": \"@angular-devkit/build-webpack:webpack\" in angular.json; the warning is emitted unconditionally at the start of the builder function.","commonSituations":"Custom application builds with a bespoke webpack.config; older Angular CLI workspaces pinned to webpack-based builders; CI pipelines invoking these targets.","solutions":["Migrate the build target to \"@angular/build:application\" (esbuild-based).","Port required custom webpack behavior to supported options/plugins of the new builder.","If immediate migration is impossible, accept the warning and schedule the migration before Webpack support removal."],"exampleFix":"// before (angular.json)\n\"builder\": \"@angular-devkit/build-webpack:webpack\"\n// after\n\"builder\": \"@angular/build:application\"","handlingStrategy":"validation","validationCode":"const ng = require('./angular.json');\nfor (const [name, p] of Object.entries(ng.projects)) {\n  for (const [t, target] of Object.entries(p.architect ?? p.targets ?? {})) {\n    if (target.builder === '@angular-devkit/build-webpack:webpack') {\n      console.warn(`${name}:${t} uses the deprecated webpack builder; migrate to @angular/build:application`);\n    }\n  }\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Adopt @angular/build:application for all build targets.","Keep custom webpack needs in a migration backlog; the new builder supports most common needs natively.","Audit angular.json builders after every Angular major upgrade."],"tags":["angular","deprecation","webpack","build"],"backgroundTag":"webpack-builder-deprecated","analyzedSha":"bb72145f9ab45aee29f523236b3a25cd0813a841","analyzedAt":"2026-08-30T02:47:34.745Z","schemaVersion":2},"datasetVersion":"2026-08-30T03:17:51.788Z"}