title: use UMD library in angular 2/4
body: <p>I have library (<a href="http://tus.io/" rel="nofollow noreferrer" >Tus.io</a>) thats compiled to <a href="https://github.com/umdjs/umd" rel="nofollow noreferrer">UMD</a>. i need it in my Angular2/4 project. when i install it with npm ( <strong>npm install tus-js-client</strong> ) and import it (<strong>var tus = require("tus-js-client");</strong> ) the error i get is:</p>
  
  <pre><code>Failed to compile.
  /home/***/src/app/manageVideos/Partials/add.component.ts (8,17): 
  Module '../../../../node_modules/tus-js-client/dist/tus.js' 
  was resolved to '/home/***/node_modules/tus-js-client/dist/tus.js', 
  but '--allowJs' is not set.
  /home/***/src/app/manageVideos/Partials/add.component.ts (9,11): Cannot find name 'require'.
  </code></pre>