title: How to get module working in both Node and browser without transpiler?
body: <p>Now that Chrome supports <code>import</code>/<code>export</code> I thought we could share some code between Node.js and browser <em>without</em> the need for Babel, but because <code>export</code> can't be wrapped in a conditional, I'm not sure how we can do this.</p>
  
  <p>e.g. is there some way to write something like this</p>
  
  <pre><code>if (typeof module !== "undefined" &amp;&amp; module.hasOwnProperty("exports")) {
      module.exports = BigInt;
  } else {
      export default BigInt;
  }
  </code></pre>
  
  <p>and trick both the Chrome and Node into parsing it?</p>