npm i -s @prefresh/vite ## OR yarn add @prefresh/vite
Then add it to your vite.config.js config:
vite.config.js
import prefresh from '@prefresh/vite'; export default { plugins: [prefresh()] };