IE11 gives SCRIPT1002 error when defining class in javascript : <p>I have some trouble with IE11 and a static javascript class I wrote.</p>

<p>The error I get is:</p>

<blockquote>
  <p>SCRIPT1002: Syntax error
  rgmui.box.js (6,1)</p>
</blockquote>

<p>Which points to: </p>

<pre><code>// ===========================================
// RGMUI BOX
// Static class

class RgMuiBox {
^
</code></pre>

<p>So I'm guessing I'm defining this class in the wrong way? What's the correct way of doing this?</p>

<p>I found a post on SO that seems to point out that the issue is ES5 vs ES6 - and I figure IE11 doesn't support ES6?</p>

<p>Just to be complete, this is what I have (simplified):</p>

<pre><code>class RgMuiBox {
    static method1() {
    // .. code ..
    }
}
</code></pre>

<p>Thanks!</p>
