title: how to import dojo modules in es6
body: <p>I'm developing a library that uses ArcGIS which based on <code>dojo</code> framework.</p>
  
  <p>ArcGIS has main file that we include in the <code>&lt;script&gt;</code> Tag. And then we simple require their modules using <code>require('esri/map'...</code>.</p>
  
  <p>My es6 library has allot of modules and part of them need to use ArcGIS modules.</p>
  
  <p>I'm using webpack and babel to bundle and transform the code. I'm not bundling ArcGIS in my library single file. I'm expecting my clients to include esri adding <code>&lt;script&gt;</code> and then include my bundle using <code>&lt;script&gt;</code>.
  There I've already met an obstacle - <code>dojo multiple define</code>... So I've made another <code>js</code> excluded from the bundle that loads my bundle file using dojo <code>require</code> that already exist (Cause arcgis is up already and loaded dojo).</p>
  
  <p>Now, the second problem I don't manage to solve is to load other ArcGIS AMD modules..</p>
  
  <p>I have my class <code>MyMap.js</code> </p>
  
  <pre><code>export default MyMap {
     constructor() {
        // Adding here code to create ArcGIS Map
        // this.map = new esriMap....
     }
  }
  </code></pre>
  
  <p><code>esriMap</code> does not exist and must be loaded. In a simple application we would do this to make it happen</p>
  
  <pre><code>require([
    "esri/Map",
    "esri/views/MapView"
  ], function(Map, MapView) {
  
    var map = new Map({
      basemap: "streets"
    });
  
    var view = new MapView({
      container: "viewDiv",
      map: map,
      zoom: 4,
      center: [15, 65]
    });
  
  });
  </code></pre>
  
  <p>but this does not work.</p>
  
  <p>someone ?</p>