Skip to content

Commit

Permalink
fix(core): unable to trigger diagnostic update when config is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jul 28, 2024
1 parent bc66546 commit 597ca48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/lib/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export async function watchConfigFile(
let config: Config | undefined;
if (!result.errors.length) {
try {
config = (await import(outFile)).default;
delete require.cache[outFile];
config = (await import(outFile + '?time=' + Date.now())).default;
} catch (e) {
result.errors.push({ text: String(e) } as any);
}
Expand Down

0 comments on commit 597ca48

Please sign in to comment.