fuse-box / fuse-box-aurelia-loader

MIT License
14 stars 2 forks source link

Storing templates and modules in moduleRegistry and templateRegistry needed for HMR. #10

Closed arjendeblok closed 7 years ago

arjendeblok commented 7 years ago

To be able to make HMR work, the modules must be stored in the moduleRegistry. The aurelia-hot-module-replacement package makes use of that. The module registry was created, but no modules where ever added to it.

nchanged commented 7 years ago

Nice! You think you can try that one? http://fuse-box.org/#loader-plugins

Please check the example here: https://github.com/fuse-box/fuse-box-ts-react-reflux-seed/blob/master/src/client/hmr.ts#L41

We need to be able to control what we are reloading in the framework.

vegarringdal commented 7 years ago

@arjendeblok @nchanged merging this since I managed to do this when trying the plugin part @arjendeblok created... I cant change variables everywhere, but that might be a limit to the fusetest

nchanged commented 7 years ago

@vegarringdal looks impressive!

vegarringdal commented 7 years ago

yes, @arjendeblok plugin code that hood in the aurelia-hotload-module :-)

will be fun to test more later today.