title: (How) can I use System.import in babel along with require.js?
body: <p>I'm playing a little bit with the new <em>ES6</em> functionalities and Babel. I'm successfully using the modules export/import functionalities by means of <em>require.js</em> (transpiling into <em>AMD</em>), but the experimental <em>module loader</em> doesn't want to work. Here is my code and configurations:</p>
  
  <p>extract of <code>front-app/tst.js</code></p>
  
  <pre><code>import {tstimp as functocall} from "front-app/tstimp.js";
  
  ...
  
  /**
   * LOADING MODULES DYNAMICALLY
   */
  System.import('front-app/tst_dyn_mod')
      .then(some_module =&gt; {
          console('using the module!');
          some_module.sayHello();
      })
      .catch(error =&gt; {
          console.log('error!');
          console.log(error);
      });
  </code></pre>
  
  <p>My <code>.babelrc</code> looks like this:</p>
  
  <pre><code>{
    "presets": ["es2015", "react"],
    "plugins": ["transform-es2015-modules-amd"]
  }
  </code></pre>
  
  <p>and the scripts I import are these ones, in that order:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"&gt;&lt;/script&gt;
          &lt;script src="node_modules/babel-polyfill/dist/polyfill.min.js"&gt;&lt;/script&gt;
          &lt;script data-main="front-app/tst" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.8/require.min.js"&gt;&lt;/script&gt;
          &lt;script src="node_modules/es6-module-loader/dist/es6-module-loader.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Unfortunately what I get is the following error by using firefox:</p>
  
  <pre><code>error! tst.js:695:9
  Error: a is undefined
      Error loading http://localhost/es6r1/front-app/tst_dyn_mod
  </code></pre>
  
  <p>what's that <code>a</code>? Am I missing something? Keep in mind my code is transpiled into AMD, but <code>System</code> is supposed to stay there in the transpiled code (and it IS there). The polyfill should do the dirty job, right? </p>