mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
915a03ae85
Foreign components are only supported in AOT mode. Using them in JIT mode previously resulted in silent failures or confusing runtime errors (such as unknown element errors or crashed template ingestion). This commit adds explicit validation in JIT compilation: - Throws an error during component compilation if `foreignImports` is specified on `@Component`. - Throws an error during standalone import verification if a foreign component is mistakenly passed to `@Component.imports`.