title: Angular 10: CommonJs and AMD Dependencies can cause optimization bailouts, hotkeys.js depends on 'mousetrap'
body: <p>We are receiving this build warning in Angular 10. How can this be fixed? Is there an alternative NPM like Lodash-es ?</p>
  <blockquote>
  <p>hotkeys.js depends on 'mousetrap'. CommonJs and AMD Dependencies can cause optimization bailouts</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/BZ8J6.png" rel="nofollow noreferrer">Error Message</a></p>
  <p>Resource: <a href="https://stackoverflow.com/questions/62592903/upgrading-to-angular-10-fix-commonjs-or-amd-dependencies-can-cause-optimizatio">Upgrading to Angular 10 - Fix CommonJS or AMD dependencies can cause optimization bailouts</a></p>