angular/packages/bazel/test
Paul Gschwendtner 46045ad3fb refactor(bazel): add module interop for CJS/ESM compiler-cli package (#43431)
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
2021-10-01 18:28:46 +00:00
..
ng_package build: expose locales as package export for ES module resolution (#43431) 2021-10-01 18:28:44 +00:00
ngc-wrapped refactor(bazel): add module interop for CJS/ESM compiler-cli package (#43431) 2021-10-01 18:28:46 +00:00