News Score: Score the News, Sort the News, Rewrite the Headlines

HMR natively in Node.js (technical write up)

One of the key factors in rapid development is discarding as little state as possible. In Node.js, this means the new --watch flags are not that useful, since they throw everything away. The ideal is to simply invalidate a module when it changes or when a module it depends on changes. This way, all imports and data are always fresh, but only partial module trees get re-evaluated. Previously, immaculata did the same thing Vite does now: use the built-in node:vm functionality to create an ad hoc m...

Read more at immaculata.dev

© News Score  score the news, sort the news, rewrite the headlines