title: Babel 6 - Enable default parameters for functions
body: <p>I have a piece of code:</p>
  
  <pre><code>'use strict';
  
  class ArticleModel {
  
    constructor(options = {}) {
      this.options = options
    }
  
  }
  
  module.exports = ArticleModel
  </code></pre>
  
  <p>which results in the error <code>Unexpected token =</code> - I don't believe Babel is parsing this. Which babel 6 plugin is needed to parse default parameters in a function?</p>
  
  <p>Edit 1 - this is my .babelrc file</p>
  
  <pre><code>{
    "presets": [
      "es2015",
      "stage-0"
    ]
  }
  </code></pre>
  
  <p>Edit 2 - I am not running babel from the same directory as <code>.babelrc</code>. I'm running babel from inside <code>test/</code> where the structure looks like this:</p>
  
  <pre><code>/app
  /test
  /test/runner.js &lt; -- this is what calls babel-core/register
  .babelrc
  </code></pre>
  
  <p>Do I need to explicitly tell <code>babel-core/register</code> where <code>.babelrc</code> is? I assumed it rolled up a directory for it.</p>
  
  <p>Edit 3 - changed <code>babel/register</code> to <code>babel-core/register</code>. Still get the same issue.</p>