remixz/run-js

Hot Module Replacement for React

Open

#3 geöffnet am 31. Dez. 2015

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (8 Forks)github user discovery
enhancementhelp wanted

Repository-Metriken

Stars
 (188 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

For files that use React, it would be really nice for it to use HMR instead of the regular LiveReload, since it's a bit less jarring.

There's a Browserify implementation of HMR: https://github.com/AgentME/browserify-hmr The main thing that would need to happen is to look through the file being server, see if it uses react as a dependency (should be possible, see detective: https://github.com/substack/node-detective), and if so, add the HMR Babel React Transform, and serve the HMR client code instead of LiveReload.

Contributor Guide