carteb / carte-blanche

An isolated development space with integrated fuzz testing for your components. See them individually, explore them in different states and quickly and confidently develop them.
https://www.youtube.com/watch?v=6g3-TQ6aaw8
MIT License
1.5k stars 47 forks source link

WIP Hot module replacement #205

Closed jantimon closed 8 years ago

jantimon commented 8 years ago

TODO: Hot module replacement causes the loss of the component state.

mxstbr commented 8 years ago
Command Entries Middleware Result
$ webpack-dev-server --hot Yes No ✓ (HMR in both app and plugin)
No ✓ (no HMR in either, but both work)
$ webpack-dev-server Yes ✓ (everything breaks, no matter if our plugin is included or not)
No ✓ (no HMR in either app or plugin, everything works)
$ webpack-dev-server Yes Yes ?
No ?
$ webpack-dev-server --hot Yes ?
No ?

TODO: Test all the ways of doing HMR! (if the app doesn't have HMR, the styleguide can't either, and if the app has HMR, the styleguide should have it too)