0👍
At the top of alert.js
I have changed
const Alert = {}
to
export const Alert = {}
I had tried this before posting my question, but it didn’t make any difference to start with. I have now found that it is necessary to stop the Vite server, and re-start it, to update a plugin – it doesn’t hot reload! Of course.
Source:stackexchange.com