title: gulp babel, exports is not defined
body: <p>Consider the following example code (and maybe I am doing it wrong?)</p>
  
  <pre><code> var FlareCurrency = {
  
   };
  
  export {FlareCurrency};
  </code></pre>
  
  <p>I have the following task:</p>
  
  <pre><code>gulp.task("compile:add-new-currency-minified", function(){
    return gulp.src('src/add-new-currency/**/*.js')
               .pipe(babel())
               .pipe(concat('Flare-AddNewCurrency.js'))
               .pipe(uglify({"preserveComments": "all"}))
               .pipe(gulp.dest('dist/minified/'));
  });
  </code></pre>
  
  <p>When I run this I get the following:</p>
  
  <pre><code>"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var FlareCurrency={};exports.FlareCurrency=FlareCurrency;
  </code></pre>
  
  <p>For the fun of it, I wanted to run it in the console, yes I know it does nothing but I didn't expect to see this:</p>
  
  <pre><code>Uncaught ReferenceError: exports is not defined(…)
  </code></pre>
  
  <p>The non minified version:</p>
  
  <pre><code>"use strict";
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  var FlareCurrency = {};
  
  exports.FlareCurrency = FlareCurrency;
  </code></pre>
  
  <p>throws the same error. <strong>Ideas?</strong></p>