title: Can I define an ES6 static method from an imported object?
body: <p>If I define some class:</p>
  
  <pre><code>class MyClass {
    static  myVar = { someKey: someVal };
  ...
  }
  </code></pre>
  
  <p>but instead of defining the static variable from within the class, I want to import it from another file:</p>
  
  <pre><code>// utils.js
  export const someObject = { someKey: someVal };
  ...
  </code></pre>
  
  <p>Will this work?:</p>
  
  <pre><code>import { someObject } from './utils.js';
  
  class MyClass {
    static  myVar = someObject;
  ...
  }
  </code></pre>
  
  <p><strong>edit:</strong> The title to this question would more accurately be: "Can I define an ES6 static <strong>field</strong> from an imported object?" Static fields are currently a stage-2 proposal for JS. See @T.J.Crowder's answer below. and require the "babel-preset-stage-2" transpiler.</p>