angular/packages/bazel
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
..
docs refactor(bazel): remove old Angular CLI schematics and builder (#41575) 2021-04-13 13:01:59 -07:00
src refactor(bazel): add module interop for CJS/ESM compiler-cli package (#43431) 2021-10-01 18:28:46 +00:00
test refactor(bazel): add module interop for CJS/ESM compiler-cli package (#43431) 2021-10-01 18:28:46 +00:00
third_party/github.com/bazelbuild/bazel/src/main/protobuf build: upgrade angular build, integration/bazel and @angular/bazel package to rule_nodejs 2.2.0 (#39182) 2020-10-08 11:54:59 -07:00
BUILD.bazel feat(bazel): create transition for enabling partial compilation (#43431) 2021-10-01 18:28:42 +00:00
index.bzl refactor(bazel): move ng_module.bzl file into sub-directory for consistent structure (#43431) 2021-10-01 18:28:42 +00:00
package.json feat(bazel): implement partial compilation APF v13 for ng_package rule (#43431) 2021-10-01 18:28:42 +00:00