logoalt Hacker News

notnullorvoid • yesterday at 11:55 AM • 1 reply • view on HN

There is no "one thing", there's many things, the top of the list being:

- packages in workspaces can be used as dependencies without compilation (node's type stripping doesn't support this)

- a good permissions model for limiting access to system fs, net, etc.

- native WebGPU support (including building a windowed app without a web view)

- desktop gui builds that allow using Chromium embedded or WebView

- built-in linter, benchmark, coverage, etc.


Replies

MrJohz • yesterday at 12:41 PM

> - packages in workspaces can be used as dependencies without compilation (node's type stripping doesn't support this)

Node does support this! Although it may depend on exactly you link the packages within a workspace — I use `pnpm` and it Just Works™. Because NodeJS looks at the resolved symlink to decide whether a project is in `node_modules` or not, if the symlink resolves to a package in the workspace, then NodeJS will do type stripping as normal.

In fairness, the documentation is very unspecific about this, so I just had to try it out and see what happens, but it does work.

I think NodeJS also has coverage these days, although I could be wrong there.

➕ show 1 reply