NgModule: forwardRef(ns.X), ns.X.forRoot() and spread/const lists are not resolved (`.d.ts` gets `never`)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by reading the ModuleLists implementation and the evaluator used for .d.ts references in #697; the issue does not name source files or tests. Trace how NgModule imports and exports are evaluated, then check that forward references, forRoot() calls, and spread or const lists resolve in declarations and JIT scopes. Done means those cases match the ngtsc behavior shown in the issue.
索引モデルが issue の本文から書いたものです。
説明
Found while reviewing #697. Checked against ngtsc 22.2.4. ngtsc resolves NgModule lists statically. Oxc keeps the raw text, so the .d.ts gets never. Consumers then can't see what the module exports, and JIT scopes keep the call expressions.
import * as dep from './dep';
@NgModule({ imports: [forwardRef(() => dep.DepModule), dep.DepModule.forRoot()] }) export class M {}
ngtsc Oxc
.d.ts ɵɵNgModuleDeclaration<M, never, [typeof i1.DepModule, ɵɵNgModuleDeclaration<M, never, never, never>
typeof i1.DepModule], never>
scope setNgModuleScope(M, { imports: [i1.DepModule, i1.DepModule] }) setNgModuleScope(M, { imports: [forwardRef(() => dep.DepModule), dep.DepModule.forRoot()] })
import { DepModule } from './dep';
const LIST = [DepModule];
@NgModule({ imports: [...LIST], exports: LIST }) export class M {}
ngtsc Oxc
.d.ts ɵɵNgModuleDeclaration<M, never, [typeof i1.DepModule], ɵɵNgModuleDeclaration<M, never, never, never>
[typeof i1.DepModule]>
scope setNgModuleScope(M, { imports: [DepModule], exports: [DepModule] }) setNgModuleScope(M, { imports: [...LIST], exports: LIST })
ɵinj imports: [LIST, DepModule] imports: [...LIST, LIST] (same at runtime)
To do: resolve forwardRef(() => ns.X), ns.X.forRoot() (ModuleWithProviders) and spread / const lists in ModuleLists, with the evaluator that #697's .d.ts references use.
- 主要言語
- Rust
- スター
- 245
- フォーク
- 26
- 平均マージ
- 1日 23分
- マージ済み PR(30日)
- 83
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
voidzero-dev/oxc-angular-compiler のほかの issue
-
partial: host binding map keys are not always quoted like ngtsc (`click:` vs `"click":`)対応中かも @Brooooooklyn が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
voidzero-dev/oxc-angular-compiler#686 ·
メンテナーはふだん 1 日以内に返信
-
output: non-ASCII text not escaped like ngtsc; linker adds `changeDetection: 1` for v19 / v20.1オープン
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
voidzero-dev/oxc-angular-compiler#707 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
voidzero-dev/oxc-angular-compiler#706 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 46/100
voidzero-dev/oxc-angular-compiler#705 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 56/100
voidzero-dev/oxc-angular-compiler#704 ·
メンテナーはふだん 1 日以内に返信
voidzero-dev/oxc-angular-compiler の issue をすべて見る
似ている issue
-
Panic on live viewport resize when unstyled elements exist in display: none subtree対応中かも @GoCoder7 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DioxusLabs/blitz#1488 ·
メンテナーはふだん 1 日以内に返信
-
🏷️ good first issue enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
S-Needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
vectordotdev/vrl#2042 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信