From bbfe33f7cdb6c7abf784ba7a4f2b228ff9510e85 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Wed, 28 Oct 2015 13:33:57 -0700 Subject: [PATCH] Enables source maps for exceptions in the compiler, if available. --- src/compiler/tsc.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/compiler/tsc.ts b/src/compiler/tsc.ts index 12d4f2fd0da..11fecbbd8dc 100644 --- a/src/compiler/tsc.ts +++ b/src/compiler/tsc.ts @@ -224,7 +224,7 @@ namespace ts { if (sys.watchDirectory && configFileName) { let directory = ts.getDirectoryPath(configFileName); directoryWatcher = sys.watchDirectory( - // When the configFileName is just "tsconfig.json", the watched directory should be + // When the configFileName is just "tsconfig.json", the watched directory should be // the current direcotry; if there is a given "project" parameter, then the configFileName // is an absolute file name. directory == "" ? "." : directory, @@ -630,13 +630,13 @@ namespace ts { } } - // declare var global: any, require: any; - // if (typeof global !== "undefined" && Object.prototype.toString.call(global.process) === '[object process]') { - // try { - // require("source-map-support").install(); - // } - // catch (e) { } - // } + declare var global: any, require: any; + if (typeof global !== "undefined" && Object.prototype.toString.call(global.process) === '[object process]') { + try { + require("source-map-support").install(); + } + catch (e) { } + } } ts.executeCommandLine(ts.sys.args);