Skip to content

Commit

Permalink
fix: fix css modules code gen
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed May 6, 2020
1 parent 356f686 commit a81c432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -154,7 +154,7 @@ const loader: webpack.loader.Loader = function(source: string) {
const styleRequest = stringifyRequest(src + query)
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 a81c432

Please sign in to comment.