mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
leave upload path as /dist/
This commit is contained in:
@@ -60,7 +60,7 @@ function fromLocal(extensionPath, sourceMappingURLBase) {
|
||||
if (sourceMappingURLBase) {
|
||||
var contents = data.contents.toString('utf8');
|
||||
data.contents = Buffer.from(contents.replace(/\n\/\/# sourceMappingURL=(.*)$/gm, function (_m, g1) {
|
||||
return "\n//# sourceMappingURL=" + sourceMappingURLBase + "/extensions/" + path.basename(extensionPath) + "/out/" + g1;
|
||||
return "\n//# sourceMappingURL=" + sourceMappingURLBase + "/extensions/" + path.basename(extensionPath) + "/dist/" + g1;
|
||||
}), 'utf8');
|
||||
if (/\.js\.map$/.test(data.path)) {
|
||||
if (!fs.existsSync(path.dirname(data.path))) {
|
||||
|
||||
Reference in New Issue
Block a user