Use sys.newLine in transpile when possibel
This commit is contained in:
parent
c53b0a5016
commit
ccb562385d
|
@ -1680,7 +1680,7 @@ module ts {
|
|||
useCaseSensitiveFileNames: () => false,
|
||||
getCanonicalFileName: fileName => fileName,
|
||||
getCurrentDirectory: () => "",
|
||||
getNewLine: () => "\r\n"
|
||||
getNewLine: () => (sys && sys.newLine) || "\r\n"
|
||||
};
|
||||
|
||||
var program = createProgram([inputFileName], options, compilerHost);
|
||||
|
|
Loading…
Reference in a new issue