mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
46045ad3fb
In the current Bazel setup, we run CommonJS as devmode output, and ESM for prodmode output. This means that consumers of the `@angular/bazel` package will end up using the prodmode-built ESM package of the compiler-cli. This commit adds interop logic to be able to load the compiler-cli as strict ESM package. We cannot switch devmode to ESM, as this would require some changes in `rules_nodejs` and potentially the reduction of both output flavors into a single one (which is a future project anyway). This is out of scope for now and inside g3, there is still devmode output as well. PR Close #43431