Skip to content

Commit

Permalink
refactor(@angular-devkit/build-angular): reduce source map resolution…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
JoostK committed Aug 6, 2023
1 parent e4b7c02 commit ae4123d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit ae4123d

Please sign in to comment.