angular/packages/localize
Paul Gschwendtner 684e837758 feat(bazel): support shared chunks in ng_package (#60241)
Historically we've had to be VERY cautious about the way we import
things between entry-points. That is because the `ng_package` rule
bundling is subject to silently introducing code duplication, breaking
singletons etc. We've had this surface a couple of times already, and
dev-infra tried to help detect such cases by adding safety analysis into
`ng_package`.

Long-term we want to get to an approach where it's easy to simply share
code between chunks. Precisely, with the upcoming `rules_js` migration,
this will be necessary as we will have different import "guidelines"
that would currently, before this commit, result in code duplication, or
trigger our "safety check/lint".

This commit prepares `ng_package` to support relative imports between
entry-points, so that we only need the safety check for cross-package
imports/exports. The result is that `ng_package`/APF is now smartly able
to generate shared chunks for things that are needed between multiple
entry-points. Yay!

Note that those shared chunks still remain private, and are guarded by
our `package.json` "exports"; so no new public API surface is
exposed.

PR Close #60241
2025-03-06 10:29:05 -08:00
..
init refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
schematics refactor(localize): remove deprecated name option. (#58063) 2024-10-03 16:43:36 +00:00
src docs: fix all brokens links on the API pages (#59162) 2025-03-04 20:07:24 +00:00
test refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
tools docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
BUILD.bazel feat(bazel): support shared chunks in ng_package (#60241) 2025-03-06 10:29:05 -08:00
index.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
localize.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
package.json build: update babel dependencies to v7.26.9 (#59743) 2025-02-14 19:15:15 +00:00
PACKAGE.md docs(language-service): correction of the demonstration translation (#50359) 2023-05-19 14:20:29 +00:00
private.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00