diff --git a/build/build-cdt-lib.js b/build/build-cdt-lib.js index 378508c5e32e..1fd274f8bf29 100644 --- a/build/build-cdt-lib.js +++ b/build/build-cdt-lib.js @@ -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) { diff --git a/lighthouse-core/lib/cdt/generated/sdk/SourceMap.js b/lighthouse-core/lib/cdt/generated/sdk/SourceMap.js index fc2ef798f09f..f9ae774db00d 100644 --- a/lighthouse-core/lib/cdt/generated/sdk/SourceMap.js +++ b/lighthouse-core/lib/cdt/generated/sdk/SourceMap.js @@ -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);