From afed8b48c89dc7b584970d77f325531dc9227c58 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Thu, 5 Aug 2021 10:25:12 -0700 Subject: [PATCH] fix #485; style side effect --- rollup.config.js | 1 + 1 file changed, 1 insertion(+) 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)}';