title: Angular 10 - CommonJS or AMD dependencies can cause optimization bailouts
body: <p>I've updated from angular 7.1.4 to 10.
  Now i receive strange warnings like this one:</p>
  <blockquote>
  <p>WARNING in C:\Sviluppo\Welcome\welcome-cloud-app\src\app\calendario-fasce\mese\mese.component.ts depends on src/app/interfaces/calendar/calendar.component. CommonJS or AMD dependencies can cause optimization bailouts.
  For more info see: <a href="https://angular.io/guide/build#configuring-commonjs-dependencies" rel="noreferrer">https://angular.io/guide/build#configuring-commonjs-dependencies</a></p>
  </blockquote>
  <p>For other warnings like this, i've added in angular.json the relative line, for example:</p>
  <pre><code>&quot;allowedCommonJsDependencies&quot;: [
      &quot;moment&quot;,
      ....
  ]&quot;
  </code></pre>
  <p>How can i resolve this warning relative to my components?</p>