Skip to content

Commit 03650a7

Browse files
Brooooooklynclaude
andauthored
fix: linker emits NgModule scope fields and aligns forwardRef handling with Angular TS compiler (#96)
The linker's `link_ng_module` was incorrectly omitting `declarations`, `imports`, and `exports` from the `ɵɵdefineNgModule` output, causing NG0302/NG0303 runtime errors when standalone components import NgModules from pre-compiled libraries like `@ngx-translate/core`. Additionally, aligns the linker with the Angular TypeScript compiler's behavior for: - NgModule forward declaration wrapping (containsForwardDecls consistency) - Component dependency forwardRef unwrapping + closure emit mode - Injectable forwardRef unwrapping on providedIn/useClass/useExisting/useValue - Query emitDistinctChangesOnly flag read from metadata instead of hardcoded - Query predicate forwardRef unwrapping Close #94 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 358c046 commit 03650a7

File tree

1 file changed

+398
-36
lines changed
  • crates/oxc_angular_compiler/src/linker

1 file changed

+398
-36
lines changed

0 commit comments

Comments
 (0)