Skip to content

Commit 5670bbf

Browse files
authored
fix #485; style side effect (#486)
1 parent dce57a0 commit 5670bbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const css = {
3030
transform(input, id) {
3131
if (id !== cssPath) return;
3232
return {
33+
moduleSideEffects: true,
3334
code: `if (typeof document !== 'undefined') {
3435
const style = document.createElement('style');
3536
style.textContent = '${jsesc(new CleanCSS().minify(input).styles)}';

0 commit comments

Comments
 (0)