title: Angular - How to import a module from a JS bundle
body: <p>I am trying to import a module from a generated Angular library bundle located inside a <code>vendor</code> subfolder under <code>src/</code>.</p>
  <p><strong>index.html</strong></p>
  <pre><code>&lt;head&gt;
  ...
      &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;./vendor/example/bundles/example.umd.js&quot;&gt;&lt;/script&gt;
      
  &lt;/head&gt;
  </code></pre>
  <p>Nevertheless, I am having some troubles importing module from this in my <code>app.module.ts</code>. Please, any idea of how to do it?</p>
  <p>It seems that @angular/core and @angular/common peerDependencies of angular library should also be bundled inside script to work correctly.</p>
  <p>I will appreciate any kind of help</p>