Macil / browserify-hmr

Hot Module Replacement plugin for Browserify
MIT License
373 stars 26 forks source link

Do you know thermite #7

Closed serapath closed 8 years ago

serapath commented 8 years ago

https://github.com/omphalos/thermite/issues/1#issuecomment-143411319

Macil commented 8 years ago

That looks like it's trying to be a more portable version of Amokify. Here's a similar discussion about comparing Browserify-HMR and Amokify. The HMR way is simple if your modules have an easily defined life cycle that you define yourself or use a domain-specific add-on to do so (e.g. react-transform-hmr). I think HMR makes a good base for such tools. HMR operates on modules. Updates merely consist of specific modules being re-executed wholesale. The Amokify and Thermite ways seem to be more about trying to automatically make arbitrary code be hot-patchable by updating individual functions.