HMR not working with polyfill.js
I've tried from Vite
to Webpack
to very simple browser-sync
solutions (using pug
or markojs
or handlebars
) but soon after I add the polyfill.js
file to the mix (either from local / npm / unkpg) , the HMR stops working for any css
gets changed. The only way to get work with polyfill
for me is to disable HMR
option and do a full page refresh - but that takes the page cursor back to top of the screen - which is a little inconvenient when you are working down on your document.