Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Remove obsolete sourceMapPathOverrides warning
Browse files Browse the repository at this point in the history
Side effect of fixing Microsoft/vscode#28730e
  • Loading branch information
roblourens committed Jun 15, 2017
1 parent 0b46a8e commit eab353e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/sourceMaps/sourceMapUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ export function applySourceMapPathOverrides(sourcePath: string, sourceMapPathOve
let replacePattern = sourceMapPathOverrides[pattern];
const entryStr = `"${pattern}": "${replacePattern}"`;

// Validate the entry
if (!path.isAbsolute(replacePattern)) {
logger.log(`Warning: sourceMapPathOverrides entry does not map to an absolute path - ${entryStr}`);
continue;
}

const asterisks = pattern.match(/\*/g) || [];
if (asterisks.length > 1) {
logger.log(`Warning: only one asterisk allowed in a sourceMapPathOverrides entry - ${entryStr}`);
Expand Down

0 comments on commit eab353e

Please sign in to comment.