-
|
I am trying to implement hmr using template engine: liquid js Because .liquid files are not ES module so I am trying to watch all .liquid in my directory using but how should I access this chokidar watcher from main.js? or how to implement hmr with a template engine? thanks and sorry my english xD |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
If the templating engine itself doesn't support HMR, there's no way to magically make it work with HMR. The template/framework needs to have dedicated APIs to be used with Vite's HMR API.
|
Beta Was this translation helpful? Give feedback.

If the templating engine itself doesn't support HMR, there's no way to magically make it work with HMR. The template/framework needs to have dedicated APIs to be used with Vite's HMR API.
server.watchis irrelevant here because all files are watched by default.