title: How could I execute /_next/static/xxx.js by script tag
body: <p>I've customize next.config (webpack) to build a static js file (<code>.next/static/loader.js</code>).</p>
  
  <p>The original <code>loader.js</code> is an IIFE:</p>
  
  <pre class="lang-js prettyprint-override"><code>(function stickerLoader(){
    alert('Hello');
    // ... some source code
  }())
  </code></pre>
  
  <p>And its usage is like:</p>
  
  <pre><code>&lt;script type="text/javascript" src="/_next/static/loader.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>However, the above won't execute immediately, cause it was compile to:</p>
  
  <pre class="lang-js prettyprint-override"><code>(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["static/loader.js"],{
  
  /***/ "./components/Sticker/loader.js":
  /*!**************************************!*\
    !*** ./components/Sticker/loader.js ***!
    \**************************************/
  /*! no static exports found */
  /***/ (function(module, exports) {
  
  (function stickerLoader() {
    alert('Hello');
    // ... some minified source code
  })();
  
  /***/ })
  
  },[["./components/Sticker/loader.js","static/runtime/webpack.js"]]]);
  </code></pre>
  
  <p>Does Next.js has any settings could remove the <code>WEBPACK WRAPPER</code>, and leave my source code only, so my expected result would be like:</p>
  
  <pre class="lang-js prettyprint-override"><code>(function stickerLoader() {
    alert('Hello');
    // ... some minified source code
  })();
  </code></pre>
  
  <p>My <code>next.config.js</code>:</p>
  
  <pre class="lang-js prettyprint-override"><code>module.exports = {
    webpack(config, options) {
      return merge(config, {
        entry() {
          return config.entry().then(entry =&gt; {
            return Object.assign({}, entry, {
              'static/loader.js': path.resolve(
                __dirname,
                'components',
                'Sticker',
                'loader.js'
              )
            });
          });
        }
      });
   };
  };
  </code></pre>