angular/packages
Paul Gschwendtner 1f1039475c 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
..
animations docs: fix all brokens links on the API pages (#59162) 2025-03-04 20:07:23 +00:00
bazel feat(bazel): support shared chunks in ng_package (#60241) 2025-03-06 10:29:05 -08:00
benchpress fix(benchpress): Ensure future-proof correct initialization order (#60025) 2025-02-20 11:21:53 -05:00
common refactor(http): Make sur to pass context & transferCache from httpResource to the underlying request. (#60228) 2025-03-06 07:59:06 -08:00
compiler feat(bazel): support shared chunks in ng_package (#60241) 2025-03-06 10:29:05 -08:00
compiler-cli docs(docs-infra): Don't truncate types in symbol extraction (#59909) 2025-03-04 19:54:57 +00:00
core fix(router): update symbols (#60233) 2025-03-05 15:34:05 -08:00
docs/di docs: remove outdated/unsupported webworker doc (#49856) 2023-04-17 14:01:41 +00:00
elements refactor(core): extract dirty and markForRefresh from the private ViewRef. (#59122) 2025-03-04 22:05:40 +00:00
examples refactor(core): Remove the optional flag from Injector and all casts. (#60154) 2025-03-05 13:43:59 -08:00
forms fix(forms): Make sure statusChanges is emitted (#57098) 2025-03-06 09:21:00 -08:00
language-service fix(language-service): Forward the tags for quick info from the type definition (#59524) 2025-03-04 17:37:22 +00:00
localize feat(bazel): support shared chunks in ng_package (#60241) 2025-03-06 10:29:05 -08:00
misc/angular-in-memory-web-api docs: fix spelling of "set up" (#58362) 2025-02-03 13:50:49 -08:00
platform-browser refactor(platform-browser): drop unsupported event target error message in production (#60016) 2025-03-05 14:45:50 -08:00
platform-browser-dynamic refactor(core): Migrate all packages with the explicit-standalone-flag schematic. (#58160) 2024-10-14 14:58:57 +00:00
platform-server feat(bazel): support shared chunks in ng_package (#60241) 2025-03-06 10:29:05 -08:00
private/testing docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
router fix(router): Prevent dangling promise rejections from internal navigations (#60162) 2025-03-06 07:58:18 -08:00
service-worker docs: fix all brokens links on the API pages (#59162) 2025-03-04 20:07:23 +00:00
ssr refactor(core): add REQUEST, RESPONSE_INIT and REQUEST_CONTEXT tokens (#58669) 2024-11-14 14:21:21 -08:00
upgrade docs: fix all brokens links on the API pages (#59162) 2025-03-04 20:07:23 +00:00
zone.js docs(zone.js): update NON-STANDARD-APIS.md (#58098) 2025-03-05 17:30:42 +00:00
BUILD.bazel docs(core): remove redundant reference-manifests handwritten entries (#59169) 2024-12-12 17:29:22 -08:00
circular-deps-test.conf.js build: remove circular deps goldens (#60021) 2025-02-19 21:01:31 +00:00
empty.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
goog.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
license-banner.txt docs: update license year (#59883) 2025-03-04 19:36:47 +00:00
README.md docs: fix links to docs (#57391) 2024-08-19 09:20:15 -07:00
system.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
tsconfig-build.json build: remove usages of useDefineForClassFields: false (#58297) 2024-10-28 12:26:05 -07:00
tsconfig-legacy-saucelabs.json feat(core): support TypeScript 5.5 (#56096) 2024-05-29 15:33:33 +02:00
tsconfig-test.json
tsconfig-tsec-base.json refactor(core): throw an error when hydration marker is missing from DOM (#51170) 2023-08-04 11:31:49 -04:00
tsconfig.json feat(language-service): add code reactoring action to migrate @Input to signal-input (#57214) 2024-08-29 07:50:41 -07:00
tsec-exemption.json
types.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT