fix(compiler-cli): propagate preserveWhitespaces option to codegen (#18773)

PR Close #18773
This commit is contained in:
Pawel Kozlowski
2017-08-18 12:13:17 +02:00
committed by Miško Hevery
parent c0ba2b9ca7
commit 8ea6c56fe1
2 changed files with 5 additions and 0 deletions

View File

@ -103,6 +103,7 @@ export class CodeGenerator {
locale: cliOptions.locale || undefined, missingTranslation,
enableLegacyTemplate: options.enableLegacyTemplate !== false,
enableSummariesForJit: options.enableSummariesForJit !== false,
preserveWhitespaces: options.preserveWhitespaces,
});
return new CodeGenerator(options, program, tsCompilerHost, aotCompiler, ngCompilerHost);
}