Esbuild Web Worker Type Safety and Redundant tsconfig.worker.json
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- angular, typescript
- 領域
- build-system, cli
調査の方向性
まず、説明されている Angular CLI esbuild ワークフローを再現します。web worker を生成し、型エラーを追加して、ng build を実行します。生成された tsconfig.worker.json と、builder スキーマの webWorkerTsConfig オプションを確認します。worker の型チェック動作が修正されるか明確に文書化され、誤解を招く設定が対処されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Command
build
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
When using esbuild as the bundler for Angular projects, the support for web workers appears misleading in terms of type safety:
-
In the previous webpack-based build setup, web workers had proper TypeScript type checking at build time.
-
Currently, esbuild does not type-check web workers during build time. This is not documented or clearly communicated, leading to a false sense of correctness.
-
Additionally, creating a project with a web worker generates a
tsconfig.worker.json, which seems redundant because esbuild doesn't use it for type-checking. Alsobuildercontains thewebWorkerTsConfigoption in the schema, as I understand it, this doesn't affect anything. This can confuse developers into thinking their web worker code is properly validated.
Expected Behavior
Either esbuild-based builder should perform type checking on web worker files, or there should be clear documentation and/or warnings that type-checking is not performed on workers.
Current Behavior
-
No build-time type checking for worker code.
-
Misleading tsconfig.worker.json is generated, giving false confidence in type safety.
Minimal Reproduction
- Generate a new Angular project with esbuild (Angular CLI 18+).
- Add a web worker via ng generate web-worker.
- Introduce a type error in the worker file.
- Run ng build – no type error is reported.
Exception or Error
Your Environment
Any version with esbuild bundler.
Anything else relevant?
No response
- 主要言語
- TypeScript
- スター
- 27k
- フォーク
- 11.8k
- 平均マージ
- 16時間 35分
- マージ済み PR(30日)
- 176
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
angular/angular-cli のほかの issue
-
area: @angular/build gemini-triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
angular/angular-cli#33955 ·
-
area: @angular/cli gemini-triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
angular/angular-cli#33055 · コメント 1 件 · リアクション 3 件 ·
-
area: @angular/build gemini-triaged
難易度 4/5 3〜5日 初心者へのやさしさ 72/100
angular/angular-cli#34137 ·
-
angular/build:library area: @angular/build gemini-triaged
angular/angular-cli#34131 · 担当者 1 名 ·
-
angular/build:library area: @angular/build gemini-triaged
angular/angular-cli#34130 · 担当者 1 名 ·
angular/angular-cli の issue をすべて見る
似ている issue
-
clawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
ZCode 3.14.3 に対応する オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
supermomonga/zcode-acp#24 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
growthbook/growthbook#7100 ·
-
triage
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100