title: Babel 6 CLI: Unexpected token export?
body: <p>I'm trying to run Babel through it's CLI using <code>babel-node</code> but I keep getting the <code>Unexpected token export</code> error. I understand that Babel 6 is all about plugins and that I need to set the plugin through <code>.babelrc</code> but it doesn't seem to work properly. </p>
  
  <p>So here are my questions:</p>
  
  <ul>
  <li>Should I be using the <a href="http://babeljs.io/docs/plugins/syntax-export-extensions/#usage" rel="noreferrer">syntax-export-extensions plugin</a>? I've also tried using the alternative method which is <a href="http://babeljs.io/docs/usage/babelrc/#use-via-package-json" rel="noreferrer">setting the plugin through <code>package.json</code></a> but still no luck. </li>
  <li>Also, does Babel 6's CLI have a global <code>.babelrc</code> option? It seems tedious if I have to install the plugins for every project that requires it...</li>
  </ul>
  
  <p>For those who are curious of what I'm trying to export, then here is the class:</p>
  
  <pre><code>'use strict';
  
  class Factorial {
    static solve (num) {
      if(num === 0) return 1;
      else return num * Factorial.solve(num - 1);
    }
  }
  
  console.log(Factorial.solve(5))
  
  export default Factorial;
  </code></pre>