angular/adev/shared-docs
Paul Gschwendtner 044dac98c9 feat(bazel): support bundling .d.ts with code splitting (#60321) (#60332)
Instead of relying on Microsoft's API extractor for `d.ts` bundling,
we are switching to Rollup-based `.d.ts` bundling.

This allows us to support code spliting, even for `.d.ts` files,
allowing for relative imports to be used between entry-points, without
ending up duplicating `.d.ts` definitions in two files. This would otherwise cause
problems with assignability of types.

It also nicely integrates into our existing rollup configuration, and
overall simplifies the `ng_package` rule even further!

Notably `tsup` also uses this rollup plugin, and it seems to work well.
Keep in mind that Microsoft's API extractor is pretty hard to integrate,
caused many problems in the past, and isn't capable of code splitting.
This aligns our d.ts bundling with the .mjs bundling (great alignment).

PR Close #60321

PR Close #60332
2025-03-11 15:33:05 -07:00
..
components docs(docs-infra): Use intersectionObserver for TOC (#60166) 2025-03-05 12:09:45 -08:00
directives docs(docs-infra): don't use URL to check for external links (#58955) 2024-11-28 16:43:28 +01:00
icons refactor(docs-infra): migrate @angular/docs from dev-infra into adev directory (#57132) 2024-07-30 15:51:26 +00:00
interfaces docs(docs-infra): Use intersectionObserver for TOC (#60166) 2025-03-05 12:09:45 -08:00
pipeline docs(docs-infra): Extract class constructors (#60302) 2025-03-10 16:05:03 -07:00
pipes docs(docs-infra): enable tslint (#58961) 2024-12-05 16:03:35 -08:00
providers refactor(docs-infra): migrate @angular/docs from dev-infra into adev directory (#57132) 2024-07-30 15:51:26 +00:00
services docs(docs-infra): fix initial TOC selection (#60240) 2025-03-06 07:55:43 -08:00
styles docs(docs-infra): API doc content rendering fixes (#60116) 2025-03-04 17:46:31 +00:00
testing docs(docs-infra): Check for files without using / as root. (#59726) 2025-01-28 20:33:23 +01:00
utils feat(bazel): support bundling .d.ts with code splitting (#60321) (#60332) 2025-03-11 15:33:05 -07:00
BUILD.bazel docs(docs-infra): Use intersectionObserver for TOC (#60166) 2025-03-05 12:09:45 -08:00
index.bzl docs(docs-infra): generate errors and extended-diagnostics route NavigationItem-s (#59355) 2025-01-14 11:00:06 -05:00
index.ts docs(docs-infra): Use intersectionObserver for TOC (#60166) 2025-03-05 12:09:45 -08:00
package.json build: update dependency shiki to v3 (#59986) 2025-02-18 16:50:02 +00:00