perf(core): add option to remove blank text nodes from compiled templates (#18823)

PR Close #18823
This commit is contained in:
Pawel Kozlowski
2017-07-28 15:58:28 +02:00
committed by Miško Hevery
parent 7ec28fe9af
commit b8b551cf2b
29 changed files with 536 additions and 48 deletions

View File

@ -90,6 +90,10 @@ interface Options extends ts.CompilerOptions {
// matched by the `files` / `includes` in the `tsconfig.json`.
// This is off by default.
alwaysCompileGeneratedCode?: boolean;
// Whether to remove blank text nodes from compiled templates. It is `true` by default
// in Angular 5 and will be re-visited in Angular 6.
preserveWhitespaces?: boolean;
}
export default Options;