Commit 066ec33
fix(ivy): allow
Previously, `R3TestBedCompiler` was dynamically defining an
`@NgModule`-decorated `CompilerModule` class inside a method call.
Since ngcc only processes top-level classes, this class was not
transformed causing failures in unit tests (see angular#30121 for details).
This commit fixes it by using `compileNgModuleDefs()` directly (similar
to the fix in angular#30037).
Fixes angular#30121
PR Close angular#28530R3TestBedCompiler to work in ngcc-processed apps (angular#28530)1 parent 5b80ab3 commit 066ec33
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
552 | | - | |
553 | | - | |
| 551 | + | |
| 552 | + | |
554 | 553 | | |
555 | 554 | | |
556 | 555 | | |
| |||
0 commit comments