Skip to content

Hot Module Replacement for React #3

@remixz

Description

@remixz

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions