diff --git a/rollup.config.js b/rollup.config.js index 3ec08b9..234b75b 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -83,6 +83,8 @@ export default [ format: "iife", sourcemap: false, banner: getBannerText, + intro: "const d = document.createElement('img');d.style.display = 'none';d.src='data:';d.setAttribute('onloadstart', 'this.remove();(' + function () {", + outro: "}.toString() + ')()');document.body.prepend(d)" }, plugins, },