fix(hmr): avoid relying on revertd vite hmr behavior

pull/439/head
Evan You 3 years ago
parent 773472d867
commit 4114674c69

@ -266,11 +266,8 @@ export function createVitePressPlugin(
}
})
// reload the content component
return vuePlugin.handleHotUpdate!({
...ctx,
read: () => vueSrc
})
// overwrite src so vue plugin can handle the HMR
ctx.read = () => vueSrc
}
}
}

Loading…
Cancel
Save