addressed CR feedback
This commit is contained in:
parent
4b7e6cfc2e
commit
a6c88e290e
1 changed files with 2 additions and 2 deletions
|
@ -1643,7 +1643,7 @@ module ts {
|
|||
* - allowNonTsExtensions = true
|
||||
*/
|
||||
export function transpile(input: string, compilerOptions?: CompilerOptions, fileName?: string, diagnostics?: Diagnostic[]): string {
|
||||
let options = compilerOptions ? ts.clone(compilerOptions) : getDefaultCompilerOptions();
|
||||
let options = compilerOptions ? clone(compilerOptions) : getDefaultCompilerOptions();
|
||||
|
||||
options.separateCompilation = true;
|
||||
|
||||
|
@ -1676,7 +1676,7 @@ module ts {
|
|||
getNewLine: () => "\r\n"
|
||||
};
|
||||
|
||||
var program = ts.createProgram([inputFileName], options, compilerHost);
|
||||
var program = createProgram([inputFileName], options, compilerHost);
|
||||
|
||||
if (diagnostics) {
|
||||
diagnostics.push(...program.getGlobalDiagnostics());
|
||||
|
|
Loading…
Reference in a new issue