<p dir="auto">Please try compiling this file:<br>
<a href="https://github.com/tomchentw/react-google-maps/blob/master/src/Polygon.js">https://github.com/tomchentw/react-google-maps/blob/master/src/Polygon.js</a></p>
<p dir="auto">I think the problematic part is this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export default class Polygon extends Component {
  static propTypes = {
    // Uncontrolled default[props] - used only in componentDidMount
    ...polygonDefaultPropTypes,
    // Controlled [props] - used in componentDidMount/componentDidUpdate
    ...polygonControlledPropTypes,
    // Event [onEventName]
    ...polygonEventPropTypes,
  }
  // .......
}"><pre class="notranslate"><code class="notranslate">export default class Polygon extends Component {
  static propTypes = {
    // Uncontrolled default[props] - used only in componentDidMount
    ...polygonDefaultPropTypes,
    // Controlled [props] - used in componentDidMount/componentDidUpdate
    ...polygonControlledPropTypes,
    // Event [onEventName]
    ...polygonEventPropTypes,
  }
  // .......
}
</code></pre></div>
<p dir="auto">I use --presets es2015,react,stage-2 --plugins transform-class-properties to compile and get this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SyntaxError: react-google-maps/Polygon.js: 'super.*' is not allowed before super() (This is an error on an internal node. Probably an internal error)
undefined"><pre class="notranslate"><code class="notranslate">SyntaxError: react-google-maps/Polygon.js: 'super.*' is not allowed before super() (This is an error on an internal node. Probably an internal error)
undefined
</code></pre></div>
<p dir="auto"><strong>Input:</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyClass extends ParentClass {
  property = foo;
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">MyClass</span> <span class="pl-k">extends</span> <span class="pl-v">ParentClass</span> <span class="pl-kos">{</span>
  <span class="pl-c1">property</span> <span class="pl-c1">=</span> <span class="pl-s1">foo</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Error:</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SyntaxError: index.js: 'super.*' is not allowed before super() (This is an error on an internal node. Probably an internal error)
undefined"><pre class="notranslate"><span class="pl-v">SyntaxError</span>: <span class="pl-s1">index</span><span class="pl-kos">.</span><span class="pl-c1">js</span>: '<span class="pl-smi">super</span><span class="pl-kos">.</span><span class="pl-c1">*</span>' is not allowed before super() (This is an error on an internal node. Probably an internal error)
undefined</pre></div>
<p dir="auto"><strong>Notes:</strong></p>
<ul dir="auto">
<li>Doesn't happen with <code class="notranslate">constructor() { super() }</code></li>
<li>Needs <code class="notranslate">ParentClass</code> to occur</li>
<li>Doesn't matter what the value of the class property is.</li>
</ul>
<p dir="auto">Example repo: <a href="https://github.com/thejameskyle/__babel-bug-2942">https://github.com/thejameskyle/__babel-bug-2942</a></p>