Skip to content

Commit

Permalink
Actually forward sourcemaps to gulp-typescript doesnt disable sourcem…
Browse files Browse the repository at this point in the history
…aps (#24766)
  • Loading branch information
weswigham authored Jun 8, 2018
1 parent 855c3a6 commit f17fe87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build/gulp-typescript-oop.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function createProject(tsConfigFileName, settings, options) {
read() {},
/** @param {*} file */
write(file, encoding, callback) {
proc.send({ method: "write", params: { path: file.path, cwd: file.cwd, base: file.base }});
proc.send({ method: "write", params: { path: file.path, cwd: file.cwd, base: file.base, sourceMap: file.sourceMap }});
callback();
},
final(callback) {
Expand Down
1 change: 1 addition & 0 deletions scripts/build/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ process.on("message", ({ method, params }) => {
base: params.base
});
file.contents = fs.readFileSync(file.path);
if (params.sourceMap) file.sourceMap = params.sourceMap;
inputStream.push(/** @type {*} */(file));
}
else if (method === "final") {
Expand Down

0 comments on commit f17fe87

Please sign in to comment.