logoalt Hacker News

claytongulicktoday at 5:14 AM1 replyview on HN

But I think it still doesn't work with ESM, only CommonJS, so while not insurmountable, not as good as bun.


Replies

williamsteintoday at 5:30 AM

SEA with node.js "works" for nearly arbitrarily general node code -- pretty much anything you can run with node. However you may have to put in substantial extra effort, e.g., using [1], and possibly more work (e.g., copying assets out or using a virtual file system).

[1] https://www.npmjs.com/package/@vercel/ncc