linagora / esn

OpenPaaS web & API server
4 stars 0 forks source link

Developer Experience: HMR #19

Open chamerling opened 4 years ago

chamerling commented 4 years ago

I spent a lot of time on trying to make this work with angularjs, without great success. From what I understand, it can work with webpack (not in all cases) at least if we do

import angular from 'angular';

in all the files. Then remove all the iife, require all the controllers in all the components, etc... Even with that, there are full page reloads, state is lost, etc.

I tested it on the account SPA, and for the record branch is here https://github.com/chamerling/esn-frontend-account/tree/hmr