gaearon / react-transform-hmr

A React Transform that enables hot reloading React classes using Hot Module Replacement API
772 stars 57 forks source link

Hot Reload Electron #49

Closed rgbkrk closed 8 years ago

rgbkrk commented 8 years ago

Do you think there's a way to use this with Electron, without Browserify or Webpack, relying on the chrome-remote-interface? That's what electron-hot uses, which works quite well for pure functions. About to try it with React.

Macil commented 8 years ago

Chrome's debugging interface works pretty differently than the hot module replacement API used in react-transform-hmr. Here's a good discussion about the differences. react-transform-hmr would be unlikely to support it directly. react-proxy (which react-transform-hmr uses) might be useful for a project doing this though.

rgbkrk commented 8 years ago

Well hot damn, amok is cool.

gaearon commented 8 years ago

Also https://github.com/geowarin/electron-hot-loader/ for a project that uses react-proxy with Electron.

rgbkrk commented 8 years ago

Thanks @gaearon!