Skip to content

Commit 4a0baff

Browse files
committed
refactor(vite): non blocking entry reload
1 parent daa5923 commit 4a0baff

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/runtime/internal/vite/worker.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,13 @@ async function reload() {
6060
entry = await runner.import(workerData.viteEntry);
6161
entryError = undefined;
6262
} catch (error) {
63+
console.error(error);
6364
entryError = error;
6465
}
6566
}
6667

67-
await reload();
68+
// eslint-disable-next-line unicorn/prefer-top-level-await
69+
reload();
6870

6971
// ----- Server -----
7072

0 commit comments

Comments
 (0)