mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This will make the test even more useful, as it ensures that we aren't accidentally relying on the compiler potentially discovering best guessed modules from other imports that previously were part of the same file (importing all modules as part of the test). PR Close #60503 |
||
|---|---|---|
| .. | ||
| BUILD.bazel | ||
| find-all-modules.ts | ||
| index.bzl | ||
| index.ts | ||
| README.md | ||
This test is a safety check, ensuring that all @NgModule's exported by Angular framework
packages can be imported in user code without causing any build errors.
Occasionally, an @NgModule might re-export another module. This is fine, but there are
cases, especially with relative imports being used, where the compiler (in consuming projects)
is not able to find a working import to these re-exported symbols.
The re-exported symbols simply need to be re-exported from the entry-point. For more details on this, see: https://github.com/angular/components/pull/30667.