title: How to execute a webpack module from a <script>?
body: <p>I've written an ES6 module that looks something like this:</p>
  
  <pre><code>export default function({makeCurrentVerUrl, verUrl, fileServer, downloadTokenType, appId}) {
      ...
  }
  </code></pre>
  
  <p>When compiled by webpack, it looks something like this:</p>
  
  <pre><code>webpackJsonp([5,7],[
  /* 0 */
  /***/ function(module, exports) {
  
      'use strict';
  
      Object.defineProperty(exports, "__esModule", {
          value: true
      });
  
      exports.default = function (_ref) {
          var makeCurrentVerUrl = _ref.makeCurrentVerUrl;
          var verUrl = _ref.verUrl;
          var fileServer = _ref.fileServer;
          var downloadTokenType = _ref.downloadTokenType;
          var appId = _ref.appId;
  
          ...
      };
  
  /***/ }
  ]);
  </code></pre>
  
  <p>Which is great, but I'm not sure how to run this file and call my default function.</p>
  
  <p>I can include it,</p>
  
  <pre><code>&lt;script src="/path/to/script.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Which I believe will run it automatically, but how can I call the functions I've defined in it from the browser? <code>require</code> is not defined in my browser.</p>