Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5dc3429

Browse files
committed
fix: parse new content when file is modified
1 parent 57a021a commit 5dc3429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/dev.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export async function watchContents(nuxt: Nuxt, options: ModuleOptions, manifest
139139
let parsedContent = localCache?.parsedContent
140140

141141
// If the local cache is not present or the checksum does not match, we need to parse the content
142-
if (!localCache && localCache?.checksum !== checksum) {
142+
if (!localCache || localCache?.checksum !== checksum) {
143143
if (!collectionParsers[collection.name]) {
144144
collectionParsers[collection.name] = await createParser(collection, nuxt)
145145
}

0 commit comments

Comments
 (0)