angular/packages/localize
Paul Gschwendtner a50e2da64a fix(localize): ensure transitively loaded compiler code is tree-shakable (#45405)
The localize primary entry-point (used at runtime in application code)
indirectly loads from the compiler package for computing message ids.
The compiler package has a couple of constants which cannot be DCE-ded/
tree-shaken due to side-effect reliance that is detected by Terser.

We fix these constants to be three-shakable. Note that another issue
technically would be that the compiler package has a side-effect call
for `publishFacade` (for JIT), but that invocation is marked as pure by
the Angular CLI babel optimization pipeline. So this results is no
unused code currently but is risky and should be addressed in the future.

PR Close #45405
2022-04-21 11:09:39 -07:00
..
init refactor(localize): init APF entry-point should not duplicate code (#45405) 2022-04-21 11:09:39 -07:00
schematics refactor: fix various typos across different packages (#44523) 2022-01-07 18:11:10 +00:00
src fix(localize): ensure transitively loaded compiler code is tree-shakable (#45405) 2022-04-21 11:09:39 -07:00
test build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
tools refactor(localize): init APF entry-point should not duplicate code (#45405) 2022-04-21 11:09:39 -07:00
BUILD.bazel refactor(localize): init APF entry-point should not duplicate code (#45405) 2022-04-21 11:09:39 -07:00
index.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
localize.ts refactor(localize): init APF entry-point should not duplicate code (#45405) 2022-04-21 11:09:39 -07:00
package.json feat(bazel): speed up dev-turnaround by bundling types only when packaging (#45405) 2022-04-21 11:09:39 -07:00
PACKAGE.md docs(localize): expose documentation for the @angular/localize package (#40317) 2021-03-19 12:36:10 -07:00
private.ts refactor(localize): init APF entry-point should not duplicate code (#45405) 2022-04-21 11:09:39 -07:00