Preserve newlines in our own compiler. This aids debugging as it keeps lines at a reasonable length and more closely matches the original source.

This commit is contained in:
Cyrus Najmabadi
2015-03-13 17:03:56 -07:00
parent 9445b03110
commit beb7fc4f85
7 changed files with 7478 additions and 26265 deletions

View File

@@ -252,7 +252,7 @@ function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, noOu
options += " --stripInternal"
}
options += " --cacheDownlevelForOfLength";
options += " --cacheDownlevelForOfLength --preserveNewLines";
var cmd = host + " " + dir + compilerFilename + " " + options + " ";
cmd = cmd + sources.join(" ");

7502
bin/tsc.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

3
bin/typescript.d.ts vendored
View File

@@ -1200,9 +1200,6 @@ declare module "typescript" {
target?: ScriptTarget;
version?: boolean;
watch?: boolean;
stripInternal?: boolean;
preserveNewLines?: boolean;
cacheDownlevelForOfLength?: boolean;
[option: string]: string | number | boolean;
}
const enum ModuleKind {

File diff suppressed because one or more lines are too long

View File

@@ -1200,9 +1200,6 @@ declare module ts {
target?: ScriptTarget;
version?: boolean;
watch?: boolean;
stripInternal?: boolean;
preserveNewLines?: boolean;
cacheDownlevelForOfLength?: boolean;
[option: string]: string | number | boolean;
}
const enum ModuleKind {

File diff suppressed because one or more lines are too long