YogliB / snowpack-template-angular

A Snowpack Angular template
snowpack-template-angular-git-master.yogli-b.vercel.app
5 stars 3 forks source link

HMR not working #1

Open sutin1234 opened 3 years ago

sutin1234 commented 3 years ago

please prove HMR not working

YogliB commented 3 years ago

Can you give a little more context? It doesn't work on the master or steaming-imports branch?

sutin1234 commented 3 years ago

when code changed browser it full reload. not HMR i don't know why?

YogliB commented 3 years ago

Thanks for answering! I will look into that.

The build process is that ngc builds the TypeScript files to JavaScript, then Snowpack re-builds the code, maybe HMR can't work this way, needs some exploring.

Can you give an example code for me to look at?

sutin1234 commented 3 years ago

Screen Shot 2564-02-16 at 09 51 24

click above to see video

YogliB commented 3 years ago

Thank you! I'm looking into that.

fyodorio commented 3 years ago

AFAIK hmr in Angular 11 is Webpack-driven feature, so to make it work with Snowpack some alternative snowpack-side implementation is needed. Looks like a plugin is needed for that.