Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Dec 7, 2019
1 parent 0d73a8b commit 43da869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build/build-cdt-lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ for (const file of glob.sync(`${outDir}/**/*.js`)) {
if (file.endsWith('SourceMap.js')) {
if (line.includes('TextSourceMap.load =')) deletionMode = true;
if (line.includes('prototype.sourceContentProvider =')) deletionMode = true;
if (line.includes(`url += Common.UIString('? [sm]');`)) newLine = '';
// newLine = line.replace(`Common.ParsedURL.completeURL(this._baseURL, href)`, `''`);
}
newLine = newLine.replace('exports["default"]', 'exports.default');
if (deletionMode) {
Expand Down
1 change: 0 additions & 1 deletion lighthouse-core/lib/cdt/generated/sdk/SourceMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ var TextSourceMap = /** @class */ (function () {
var url = Common.ParsedURL.completeURL(this._baseURL, href) || href;
var source = sourceMap.sourcesContent && sourceMap.sourcesContent[i];
if (url === this._compiledURL && source) {
url += Common.UIString('? [sm]');
}
this._sourceInfos.set(url, new TextSourceMap.SourceInfo(source, null));
sourcesList.push(url);
Expand Down

0 comments on commit 43da869

Please sign in to comment.