angular-cn/packages/compiler-cli/ngcc/test/integration
Pete Bacon Darwin b8e9a30d3b fix(ngcc): use preserve whitespaces from tsconfig if provided (#36189)
Previously ngcc never preserved whitespaces but this is at odds
with how the ViewEngine compiler works. In ViewEngine, library
templates are recompiled with the current application's tsconfig
settings, which meant that whitespace preservation could be set
in the application tsconfig file.

This commit allows ngcc to use the `preserveWhitespaces` setting
from tsconfig when compiling library templates. One should be aware
that this disallows different projects with different tsconfig settings
to share the same node_modules folder, with regard to whitespace
preservation. But this is already the case in the current ngcc since
this configuration is hard coded right now.

Fixes #35871

PR Close #36189
2020-03-24 14:25:06 -07:00
..
ngcc_spec.ts fix(ngcc): use preserve whitespaces from tsconfig if provided (#36189) 2020-03-24 14:25:06 -07:00
util.ts test(ngcc): use "module" format property for ES5 bundles (#36089) 2020-03-17 13:34:04 -07:00