title: import requirejs amd module with webpack
body: <p>I'm using <a href="https://github.com/jcbrand/converse.js" rel="nofollow noreferrer">Converse.js</a> and it's prebuilt into the RequireJS/AMD syntax. Including the file from a CDN you could use it like <code>require(['converse'], function (converse) { /* .. */ })</code>. How is it possible to use this with webpack? I would like to bundle converse.js with my webpack output.</p>
  
  <p>I have the file on disk, and want to import it like</p>
  
  <pre><code>import converse from './converse.js';
  converse.initialize({ .. });
  </code></pre>
  
  <p>Webpack picks up the file and bundles it correctly, although it's not useable yet as it throws 'initialize is not a function'. What am I missing?</p>