title: Disable AMD module loading
body: <p>I'm using a swagger-generated api in a stack that uses webpack with babel-loader. webpack tries to load the files as AMD modules and fails.</p>
  
  <pre><code>ERROR in D:/project/src/javascripts/api/location/model/Location.js
  Module not found: Error: Cannot resolve module 'ApiClient' in D:\project\src\javascripts\api\location\model
   @ D:/project/src/javascripts/api/location/model/Location.js 22:4-34
  </code></pre>
  
  <p>When I remove the amd-part in the swagger files (below) it works:</p>
  
  <pre><code>if (typeof define === 'function' &amp;&amp; define.amd) {
   // AMD. Register as an anonymous module.
   define(['superagent'], factory);
  }
  </code></pre>
  
  <p>I know that webpack loader "imports" supports a parameter define->false to solve such issues. But I could not find a solution for bable-loader. 
  Can anyone suggest a solution?</p>