mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Our approach for handling cyclic imports results in code that is not easy to tree-shake, so it is not suitable for publishing in a library. When compiling in partial compilation mode, we are targeting such library publication, so we now create a fatal diagnostic error instead of trying to handle the cyclic import situation. Closes #40678 PR Close #40782
8 lines
240 B
TypeScript
8 lines
240 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { ChildComponent } from './child.component';
|
|
import { ParentComponent } from './parent.component';
|
|
|
|
@NgModule({
|
|
declarations: [ParentComponent, ChildComponent]
|
|
})
|
|
export class AppModule {}
|