From ae4123d328c3960ed8ca78524ba481ad939a1b1c Mon Sep 17 00:00:00 2001 From: JoostK Date: Sun, 6 Aug 2023 12:12:42 +0200 Subject: [PATCH] refactor(@angular-devkit/build-angular): reduce source map resolution to word boundary magic-string 0.30.2 introduced [the `boundary` strategy][1] for its high-resolution source map mode, reducing the number of source map segments to align with word boundaries instead of having a segment per character. [1]: https://github.com/Rich-Harris/magic-string/pull/255 --- .../build_angular/src/tools/sass/rebasing-importer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/tools/sass/rebasing-importer.ts b/packages/angular_devkit/build_angular/src/tools/sass/rebasing-importer.ts index 736f3c28d6a9..3d72ef5fbc4f 100644 --- a/packages/angular_devkit/build_angular/src/tools/sass/rebasing-importer.ts +++ b/packages/angular_devkit/build_angular/src/tools/sass/rebasing-importer.ts @@ -133,7 +133,7 @@ abstract class UrlRebasingImporter implements Importer<'sync'> { if (this.rebaseSourceMaps) { // Generate an intermediate source map for the rebasing changes const map = updatedContents.generateMap({ - hires: true, + hires: 'boundary', includeContent: true, source: canonicalUrl.href, });