{"record":{"id":"7fa404f5f25c9644","repo":"angular/angular-cli","slug":"the-webworkertsconfig-option-is-not-yet-supporte","errorCode":null,"errorMessage":"The 'webWorkerTsConfig' option is not yet supported by this builder.","messagePattern":"The 'webWorkerTsConfig' option is not yet supported by this builder\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"packages/angular_devkit/build_angular/src/builders/browser-esbuild/index.ts","lineNumber":50,"sourceCode":"): 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  }\n\n  // Convert browser builder options to application builder options\n  const normalizedOptions = convertBrowserOptions(userOptions);\n\n  // Execute the application builder\n  yield* buildApplication(normalizedOptions, context, { codePlugins: plugins });\n}\n\nexport function convertBrowserOptions(\n  options: BrowserBuilderOptions,\n): Omit<ApplicationBuilderOptions, 'outputPath'> & { outputPath: OutputPathClass } {\n  const {\n    main: browser,\n    outputPath,\n    ngswConfigPath,\n    serviceWorker,\n    polyfills,","sourceCodeStart":32,"sourceCodeEnd":68,"githubUrl":"https://github.com/angular/angular-cli/blob/bb72145f9ab45aee29f523236b3a25cd0813a841/packages/angular_devkit/build_angular/src/builders/browser-esbuild/index.ts#L32-L68","documentation":"Warning emitted by the browser-esbuild builder when 'webWorkerTsConfig' is supplied. The esbuild builder does not yet support a separate TypeScript configuration for web workers, so the option is ignored and workers are compiled with the main tsConfig. Web worker builds may behave differently than under the Webpack builder.","triggerScenarios":"Running '@angular-devkit/build-angular:browser-esbuild' with `webWorkerTsConfig` pointing at a tsconfig.webworker.json (or similar) in the target options.","commonSituations":"Angular apps using `new Worker(new URL(...), { type: 'module' })` with dedicated worker TS settings, after switching to the esbuild builder.","solutions":["Remove `webWorkerTsConfig` from the browser-esbuild target options.","Fold any needed worker-only compiler options into the main tsConfig (scoped with 'include' if necessary).","If a separate worker tsConfig is mandatory, remain on the Webpack-based 'browser' builder."],"exampleFix":"// before\n\"options\": { \"webWorkerTsConfig\": \"tsconfig.worker.json\" }\n// after\n\"options\": {} // merge required settings into tsconfig.json","handlingStrategy":"validation","validationCode":"if (builder === '@angular-devkit/build-angular:browser-esbuild' && 'webWorkerTsConfig' in (target.options ?? {})) {\n  console.warn('webWorkerTsConfig unsupported by esbuild builder; merge into main tsConfig.');\n}","typeGuard":"function hasWorkerTsConfig(o: unknown): o is { webWorkerTsConfig: string } {\n  return typeof o === 'object' && o !== null && typeof (o as any).webWorkerTsConfig === 'string';\n}","tryCatchPattern":null,"preventionTips":["Audit web worker build settings after any builder migration.","Keep worker-specific compiler options in the main tsConfig when using esbuild.","Run a smoke build that instantiates workers in CI."],"tags":["angular-cli","esbuild","web-worker","build-options"],"backgroundTag":"unsupported-builder-option","analyzedSha":"bb72145f9ab45aee29f523236b3a25cd0813a841","analyzedAt":"2026-08-30T02:47:34.745Z","schemaVersion":2},"datasetVersion":"2026-08-30T03:17:51.788Z"}