remixz/run-js

Hot Module Replacement for React

Open

#3 创建于 2015年12月31日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (8 fork)github user discovery
enhancementhelp wanted

仓库指标

Star
 (188 star)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南