Why Not Implement HMR with Static Analysis?
A few months ago, I came across an article called How to build Hot Module Replacement in Python, which talked about using their Python static analysis tool Tach to generate a dependency graph in a key-value format like this: { “a.py”: [“b.py”, “c.py”], “b.py”: [“d.py”], “d.py”: [“e.py”], “c.py”: [“f.py”] } By the way, this project became unmaintained last…