diff --git a/src/css.js b/src/css.js index 69cae1c..a61c4f8 100644 --- a/src/css.js +++ b/src/css.js @@ -16,6 +16,7 @@ export function css(strings, ...values) { }) .join('')}` + cssmap[str] = uid const styleElement = document.createElement('style') document.head.appendChild(styleElement) @@ -41,6 +42,5 @@ export function css(strings, ...values) { styleElement.textContent = `.${uid} {${selfstr}}` + '\n' + newstr - cssmap[str] = uid return uid }