alienfast / vite-plugin-i18next-loader

Vite plugin to client bundle i18next locales composited from one to many json/yaml files from one to many libraries. Zero config HMR support included.
Other
42 stars 3 forks source link

Improve HMR with vite 3.2 api change #5

Open rosskevin opened 1 year ago

rosskevin commented 1 year ago

This is already commented in the code, but hopefully the new api will negate the need to send a full page reload.

Waiting on this PR to be released in vite 3.2 https://github.com/vitejs/vite/pull/10333/files

server. reloadModule(module)

gamegee commented 1 year ago

Hello @rosskevin, do you have any updates on this? :) I believe the benefits of using HMR instead of a full reload are huge.

rosskevin commented 1 year ago

I don't but I do accept PRs. And we have auto integrated here so any PR made will automatically create a canary release to try - so give it a shot!