Skip to content

Commit 8032df1

Browse files
committed
Do not create a sourcemap for loader.js
1 parent b64d298 commit 8032df1

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

build/lib/optimize.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,7 @@ function loader(src, bundledFileHeader, bundleLoader) {
6868
this.emit('data', data);
6969
}
7070
}))
71-
.pipe(util.loadSourcemaps())
72-
.pipe(concat('vs/loader.js'))
73-
.pipe(es.mapSync(function (f) {
74-
f.sourceMap.sourceRoot = util.toFileUri(path.join(REPO_ROOT_PATH, 'src'));
75-
return f;
76-
})));
71+
.pipe(concat('vs/loader.js')));
7772
}
7873
function toConcatStream(src, bundledFileHeader, sources, dest) {
7974
const useSourcemaps = /\.js$/.test(dest) && !/\.nls\.js$/.test(dest);

build/lib/optimize.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,7 @@ function loader(src: string, bundledFileHeader: string, bundleLoader: boolean):
8080
this.emit('data', data);
8181
}
8282
}))
83-
.pipe(util.loadSourcemaps())
8483
.pipe(concat('vs/loader.js'))
85-
.pipe(es.mapSync<FileSourceMap, FileSourceMap>(function (f) {
86-
f.sourceMap.sourceRoot = util.toFileUri(path.join(REPO_ROOT_PATH, 'src'));
87-
return f;
88-
}))
8984
);
9085
}
9186

0 commit comments

Comments
 (0)