Skip to content

Commit 4518bef

Browse files
committed
update rendered status after execution
1 parent d0feab1 commit 4518bef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/project/serve/watch.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@ export function watchProject(
128128
},
129129
);
130130
if (inputs.length) {
131-
// record rendered time
132-
for (const input of inputs.filter(existsSync)) {
133-
rendered.set(input, md5Hash(Deno.readTextFileSync(input)));
134-
}
135131
// render
136132
const services = renderServices();
137133
try {
@@ -164,6 +160,10 @@ export function watchProject(
164160
}
165161
return undefined;
166162
} else {
163+
// record rendered hash
164+
for (const input of inputs.filter(existsSync)) {
165+
rendered.set(input, md5Hash(Deno.readTextFileSync(input)));
166+
}
167167
renderManager.onRenderResult(
168168
result,
169169
extensionDirs,

0 commit comments

Comments
 (0)