Skip to content

Commit

Permalink
Improved build performance by optimizing makeMappingKey method. (#8744)
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen authored and loganfsmyth committed Sep 26, 2018
1 parent f38be13 commit 090c364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-core/src/transformation/file/merge-map.js
Expand Up @@ -94,7 +94,7 @@ export default function mergeSourceMap(
}

function makeMappingKey(item: { line: number, columnStart: number }) {
return JSON.stringify([item.line, item.columnStart]);
return `${item.line}/${item.columnStart}`;
}

function eachOverlappingGeneratedOutputRange(
Expand Down

0 comments on commit 090c364

Please sign in to comment.