vuejs / repl

Vue SFC REPL as a Vue 3 component
https://repl-vuejs.vercel.app
MIT License
934 stars 174 forks source link

Suggestion: Adding HMR like in Vite #22

Closed MauriceConrad closed 2 years ago

MauriceConrad commented 2 years ago

In the current implementation, the re-rendering of the components is not replacing the changed parts like HMR does in real-time but in fact re-rendering all components and mounting them again. Is there way to enable HMR like the vite's dev server offers?

yyx990803 commented 2 years ago

That's not planned. The REPL is not meant for complex scenarios so state preservation is a lesser concern while proper HMR requires a lot of extra work.