angular/packages
Matt Lewis 880a57d4b3 fix(compiler): prevent shimCssText from adding extra blank lines per CSS comment
The comment placeholder restoration in `shimCssText` appended an unconditional
`+ '\n'` to each non-hash comment replacement. Because `_commentRe` does not
consume the newline that follows a comment in the source, that newline already
remains in `cssText`. The extra `'\n'` was therefore inserted on top of the
existing one, shifting every line after each comment down by one. In files with
many comments (e.g. large SCSS preambles) this shifts all subsequent CSS rules
far enough that the CSS sourcemap — generated before `shimCssText` runs —
points to completely wrong source locations in browser DevTools.

The fix is to drop the `+ '\n'`; internal newlines within a multi-line comment
are still preserved via `_newLinesRe`, and the trailing newline that follows the
comment in `cssText` is already present without any extra injection.

(cherry picked from commit 5a712d42d1)
2026-03-20 15:17:35 -07:00
..
animations test: remove duplicate tests 2026-03-11 13:35:26 -07:00
benchpress refactor(benchpress): remove zone-based testing utilities 2026-02-09 07:55:12 -08:00
common fix(common): avoid redundant image fetch on destroy with auto sizes 2026-03-19 15:21:20 -07:00
compiler fix(compiler): prevent shimCssText from adding extra blank lines per CSS comment 2026-03-20 15:17:35 -07:00
compiler-cli fix(compiler-cli): generic types not filled out correctly in type check block 2026-03-17 12:21:31 -07:00
core docs: Add callout about the Component interface. 2026-03-19 16:14:22 -07:00
docs/di build: format md files 2025-11-06 10:03:05 -08:00
elements refactor(core): mark VERSION as @__PURE__ for better tree-shaking 2025-11-10 12:04:04 -08:00
examples feat(core): add support for TypeScript 6 2026-02-17 08:40:38 -08:00
forms test: remove duplicate tests 2026-03-11 13:35:26 -07:00
language-service refactor(compiler-cli): abstract type check block metadata to be AST-free 2026-03-10 12:39:18 -07:00
localize build: update Jasmine to 6.0.0 2026-02-09 12:15:57 -08:00
misc/angular-in-memory-web-api build: update cross-repo angular dependencies 2026-01-26 23:51:05 +00:00
platform-browser Revert "fix(http): correctly cache blob responses in transfer cache (#67002)" 2026-03-04 17:19:14 +00:00
platform-browser-dynamic refactor(core): mark VERSION as @__PURE__ for better tree-shaking 2025-11-10 12:04:04 -08:00
platform-server feat(core): add support for TypeScript 6 2026-02-17 08:40:38 -08:00
private/testing test(http): remove zone-based testing utilities 2026-02-10 07:45:00 -08:00
router refactor(router): Permit deferring commit of traversal navigations 2026-03-03 22:09:15 +00:00
service-worker refactor(service-worker): remove unnecessary cast in mock redirect check 2026-03-18 10:26:26 -07:00
ssr/docs build: add node type for api extraction 2026-02-11 13:57:58 -08:00
upgrade test: remove duplicate tests 2026-03-11 13:35:26 -07:00
zone.js build: update cross-repo angular dependencies 2026-03-13 16:25:45 -06:00
BUILD.bazel build(forms): expose signal forms compat package 2025-11-14 09:23:36 -08:00
circular-deps-test.conf.cjs build: use Node.js built-in TypeScript support for dev-infra scripts 2026-01-02 08:15:40 +01: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 copyright year 2026-01-07 12:28:34 -05:00
package.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00
README.md build: format md files 2025-11-06 10:03:05 -08:00
system.d.ts refactor: update packages/core:{core,src} to ts_project (#61275) 2025-05-14 12:01:51 +00:00
tsconfig-build.json Revert "refactor(compiler-cli): remove deep imports from compiler-cli (#64732)" 2025-11-06 13:09:01 -08:00
tsconfig-legacy-saucelabs.json feat(core): support TypeScript 5.5 (#56096) 2024-05-29 15:33:33 +02:00
tsconfig-test.json
tsconfig.json feat(compiler-cli): enable type checking of host bindings by default (#63654) 2025-09-09 14:34:29 -07:00
tsec-exemption.json
types.d.ts build: move private testing helpers outside platform-browser/testing (#61472) 2025-05-20 10:00:43 +00: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