diff --git a/rollup.config.js b/rollup.config.js index 9fe1f5e963..5b83bcf5ef 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -30,6 +30,7 @@ const css = { transform(input, id) { if (id !== cssPath) return; return { + moduleSideEffects: true, code: `if (typeof document !== 'undefined') { const style = document.createElement('style'); style.textContent = '${jsesc(new CleanCSS().minify(input).styles)}';