This would be a nice feature that would make the development experience much better. However, there are several major challenges to it. This likely wouldn't work with webpack-dev-server, unless it can be extended. The goal of this ticket is to start thinking about this issue.
The requirements would be as follows:
Updating a javascript or typescript file containing a DOT component would hot-swap all instances of that component live while maintaining the state (props).
Updating javascript files that don't contain components should probably just refresh the entire webpage.
This would be a nice feature that would make the development experience much better. However, there are several major challenges to it. This likely wouldn't work with webpack-dev-server, unless it can be extended. The goal of this ticket is to start thinking about this issue.
The requirements would be as follows:
Some additional reading: