We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3189d17 commit 1e5641bCopy full SHA for 1e5641b
src/services/services.ts
@@ -1544,8 +1544,8 @@ namespace ts {
1544
return checker.getSymbolAtLocation(node);
1545
}
1546
1547
-
1548
- const sourceMapCommentRegExp = /^\/\/[@#] sourceMappingURL=(.+)$/gm;
+ // Sometimes tools can sometimes see the following line as a source mapping url comment, so we mangle it a bit (the [M])
+ const sourceMapCommentRegExp = /^\/\/[@#] source[M]appingURL=(.+)$/gm;
1549
const base64UrlRegExp = /^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;
1550
function scanForSourcemapURL(fileName: string) {
1551
const mappedFile = sourcemappedFileCache.get(toPath(fileName, currentDirectory, getCanonicalFileName));
0 commit comments