Skip to content

Commit 53ad569

Browse files
committed
fix reversed condition
1 parent a6654c2 commit 53ad569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/make-hot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const parseCssId = (code, parseHash, originalCode, compileCss) => {
150150
if (!parseHash) return {}
151151
// guard: compile.css is true, so we should have found the add_css function,
152152
// something unexpected is unraveling here, fall back to caution
153-
if (!compileCss) return {}
153+
if (compileCss) return {}
154154
// trying to get CSS id the same way as Svelte does it
155155
match = /<style[^>]*>([\s\S]*)<\/\s*style\s*>/.exec(originalCode)
156156
const cssHash = match && match[1] ? stringHashcode(match[1]) : null

0 commit comments

Comments
 (0)