Skip to content

Commit f17fe87

Browse files
authored
Actually forward sourcemaps to gulp-typescript doesnt disable sourcemaps (microsoft#24766)
1 parent 855c3a6 commit f17fe87

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/build/gulp-typescript-oop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function createProject(tsConfigFileName, settings, options) {
3131
read() {},
3232
/** @param {*} file */
3333
write(file, encoding, callback) {
34-
proc.send({ method: "write", params: { path: file.path, cwd: file.cwd, base: file.base }});
34+
proc.send({ method: "write", params: { path: file.path, cwd: file.cwd, base: file.base, sourceMap: file.sourceMap }});
3535
callback();
3636
},
3737
final(callback) {

scripts/build/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ process.on("message", ({ method, params }) => {
7272
base: params.base
7373
});
7474
file.contents = fs.readFileSync(file.path);
75+
if (params.sourceMap) file.sourceMap = params.sourceMap;
7576
inputStream.push(/** @type {*} */(file));
7677
}
7778
else if (method === "final") {

0 commit comments

Comments
 (0)