Skip to content

Commit f259e50

Browse files
maths22amireh
authored andcommitted
Actually have the right logic
1 parent f313e04 commit f259e50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ async function findChangedBundles (bundles) {
6767
for (let filename of cached.includedFiles) {
6868
// Don't exit early if a file has changed to ensure
6969
// we refresh the cached hash for *all* changed files
70-
thisVariantHasChanged = thisVariantHasChanged || fasterRefreshHashIfFileChanged(filename)
70+
const hasFileChanged = fasterRefreshHashIfFileChanged(filename)
71+
thisVariantHasChanged = thisVariantHasChanged || hasFileChanged
7172
}
7273

7374
// check to actually make sure the css file exists

0 commit comments

Comments
 (0)