Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
fix: fix css modules code missing newline
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 19, 2020
1 parent a13bed4 commit 51fdbcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 51fdbcc

Please sign in to comment.