title: Angular 10 Upgrade - Fix CommonJS or AMD dependencies can cause optimization bailouts
body: <p>I am trying to upgrade my Angular 9 app to Angular 10 version, but getting below warning after the upgrade</p>
  <pre><code>WARNING in calendar.reducer.ts depends on lodash/keys. CommonJS or AMD dependencies can cause optimization bailouts.
  </code></pre>
  <p>I have added below line to my <code>angular.json</code> file but issue is not resolved</p>
  <pre><code>&quot;allowedCommonJsDependencies&quot;: [&quot;lodash&quot;]
  </code></pre>
  <p>How can I fix above issue.</p>