from Hacker News

(ab?)using Node module hooks to speed up development

by sbjs on 5/5/25, 4:13 PM with 16 comments

  • by skinkestek on 5/7/25, 6:55 AM

    Am I missing something, or is the content here too minimal?

    For this to be genuinely useful, I’d expect at least a few code examples—and ideally a link to a working repo to show it in action.

  • by whizzter on 5/7/25, 12:00 PM

    With Typescript you could(prob still can) specify how JSX tags are translated, so you can get the regular data structure without React dependency.
  • by devrandoom on 5/7/25, 11:48 AM

    It's hard to get the idea down from one's head into a document, as this text shows.
  • by noob_07 on 5/7/25, 8:25 AM

    I do not follow, can anyone help with more code/config examples of how to leverage this?
  • by ricardobeat on 5/7/25, 11:23 PM

    This is in essence being used to emulate Bun.js behaviour with node. Have you tried bun?
  • by feisuzhu on 5/7/25, 6:47 AM

    (ab)?using ?
  • by vermilingua on 5/7/25, 12:43 PM

    This is a reinvention of HMR, no?