@mochabug/adapt-builder 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -653,7 +653,7 @@ async function dev(opts) {
653
653
  ...opts?.browser?.build?.define
654
654
  },
655
655
  banner: {
656
- js: `(function(){var es=new EventSource('/esbuild');es.addEventListener('change',function(){location.reload()});window.addEventListener('beforeunload',function(){es.close()})})();`
656
+ js: `window.addEventListener('load',function(){var es=new EventSource('/esbuild');es.addEventListener('change',function(){location.reload()});window.addEventListener('beforeunload',function(){es.close()})});`
657
657
  },
658
658
  plugins: [htmlPlugin({ files: htmlFiles })]
659
659
  });