This commit is contained in:
parent
88ae866b91
commit
10c862de59
3 changed files with 15 additions and 7 deletions
|
|
@ -450,11 +450,7 @@ export function mtp(options: MTPVitePluginOptions): VitePlugin {
|
|||
rebuildTimer = null;
|
||||
void (async () => {
|
||||
try {
|
||||
await buildIfNeeded(state, true);
|
||||
server.moduleGraph.invalidateAll();
|
||||
if (server.ws) {
|
||||
server.ws.send({ type: "full-reload" });
|
||||
}
|
||||
await server.restart();
|
||||
} catch (error) {
|
||||
server.config.logger.error(
|
||||
error instanceof Error ? error.message : String(error),
|
||||
|
|
|
|||
Loading…
Reference in a new issue