mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Since we generate a `.mjs` file as entry-point for jasmine tests, a couple of issues prevented the transitive dependencies from bootstrap targets to be brought in (causing resolution errors): 1. The `_files` (previously `_esm2015`) targets are no longer needed, and they also miss all the information on runfiles. 2. The aspect for computing linker mappings does not respect the `bootstrap` attribute from the `spec_entrypoint` so we manually add the extract ESM output targets (this rule works with the aspect and forwards linker mappings). PR Close #48521 |
||
|---|---|---|
| .. | ||
| src | ||
| test | ||
| BUILD.bazel | ||
| index.ts | ||
| main-ngcc.ts | ||
| README.md | ||
Angular Compatibility Compiler (ngcc)
This compiler will convert node_modules compiled with ngc, into node_modules which
appear to have been compiled with ngtsc.
This conversion will allow such "legacy" packages to be used by the Ivy rendering engine.
Building
The project is built using Bazel:
yarn bazel build //packages/compiler-cli/ngcc
Unit Testing
The unit tests are built and run using Bazel:
yarn bazel test //packages/compiler-cli/ngcc/test
Integration Testing
There are tests that check the behavior of the overall executable:
yarn bazel test //packages/compiler-cli/ngcc/test:integration