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

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

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

Loading…
Cancel
Save