Defining propTypes throws an error in WebPack
<p>In my previous React project I was able to define propTypes before my constructor like this</p>

<pre><code>static contextTypes = {
    propToBePassed: React.PropTypes.object.isRequired
};
</code></pre>

<p>But in my new project WebPack is throwing an Unexpected token error with the carrot pointing to the = character.</p>

<p>Any idea what I'm missing?</p>