How to globally set the preserveWhitespaces option in Angular to false? : <p>Since one of the beta releases of version 5, Angular has a new compiler option, <code>preserveWhitespaces</code>. The property is mentioned in <a href="https://angular.io/api/core/CompilerOptions" rel="noreferrer"><code>CompilerOptions</code> type alias</a> in the docs. The docs for the <code>Component</code> decorator describe <a href="https://angular.io/api/core/Component#preserveWhitespaces" rel="noreferrer"><strong>its usage</strong></a>, and mention that the default in version 5 is <code>true</code> (no whitespace removal).</p>

<p>I've seen <a href="https://github.com/angular/angular/pull/18401/files" rel="noreferrer">the PR</a>, but from what I can tell from some tests is that the only way to use it is to supply <code>preserveWhitespace</code> to every <code>@Component</code> metadata. How can I set it to <code>false</code> globally, for <em>all</em> components, and then set it to <code>true</code> only for some components?</p>
