mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
Actually forward sourcemaps to gulp-typescript doesnt disable sourcemaps (#24766)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user