Skip to content

HMR with Vite vanilla + template engine #1782

Answered by yyx990803
bwyx asked this question in Q&A
Discussion options

You must be logged in to vote

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.watch is irrelevant here because all files are watched by default.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@lubomirblazekcz
Comment options

@yyx990803
Comment options

@haikyuu
Comment options

@yyx990803
Comment options

@zanethomas
Comment options

Answer selected by bwyx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants