title: Upgrading to Angular 10 - 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 I am getting the below warning after the upgrade</p>
  <pre class="lang-none prettyprint-override"><code>rxjs\BehaviorSubject.js depends on rxjs-compat/BehaviorSubject
  </code></pre>
  <p>How can I fix this?</p>