diff --git a/src/index.ts b/src/index.ts index 720c30b..9da6876 100644 --- a/src/index.ts +++ b/src/index.ts @@ -439,7 +439,7 @@ function getStyleCode( const styleRequestWithoutModule = src + query + attrsQueryWithoutModule if (style.module) { if (!hasCSSModules) { - stylesCode += `const cssModules = script.__cssModules = {}` + stylesCode += `\nconst cssModules = script.__cssModules = {}` hasCSSModules = true } stylesCode += genCSSModulesCode(