What is their purpose in JS land?
What is their purpose in JS land?
the reason for not bundling all native binaries is becasue the no. of combinations are huge and it can make module size hundreds of MBs
That sounds like an NPM problem that would be relatively easy to fix.
Can the builds be sandboxed with strictly limited capabilities?
All of this sounds solvable, why hasn't it?
The fact that most of the ecosystem has moved to this pattern is a big part of why this change is now feasible.
... Probably a few more but the native case is probably the biggest and the packages I'm using nowadays ship precompiled blobs in optionalDependencies. Install scripts seem to be out of favor.
[1] https://docs.npmjs.com/cli/v10/configuring-npm/package-json?...