title: `Object.defineProperty(exports, '__esModule', { value: true })` vs `exports.__esModule = true`
body: <p>I figured that this:</p>
  
  <pre class="lang-js prettyprint-override"><code>Object.defineProperty(exports, '__esModule', { value: true })
  </code></pre>
  
  <p>Should give the same result as this:</p>
  
  <pre class="lang-js prettyprint-override"><code>exports.__esModule = true
  </code></pre>
  
  <p>But all UMD bundle generators I've seen have used the first option. Is there a reason?</p>