Skip to content

Commit ae4123d

Browse files
committed
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]: Rich-Harris/magic-string#255
1 parent e4b7c02 commit ae4123d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/tools/sass/rebasing-importer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ abstract class UrlRebasingImporter implements Importer<'sync'> {
133133
if (this.rebaseSourceMaps) {
134134
// Generate an intermediate source map for the rebasing changes
135135
const map = updatedContents.generateMap({
136-
hires: true,
136+
hires: 'boundary',
137137
includeContent: true,
138138
source: canonicalUrl.href,
139139
});

0 commit comments

Comments
 (0)