Joyee Cheung
Joyee Cheung
Updated the doc a bit before I lose track of all the comments (thanks for the feedback!) 1. Certain fields in the hooks become mandatory, and `shortCircuit: true` is required...
> This is potentially offset by eliminating startup cost from the loader worker thread, but something to consciously consider. I suspect that's already where the cost is coming from, because...
For tsx in particular, I think you should compare their CJS hooks v.s. the ESM hooks, because the CJS hooks are built on top of monkey patching, and is what...
The latest prototype is in https://github.com/joyeecheung/node/tree/sync-hooks-6 - I've got it working for ESM too, still need a bunch of testing to be opened as PR tough.
The idea is to start a vote but I don’t think we have a timeline for the vote. From the summit some ideas were proposed: 1. Use the next-10 survey...
It seems the discussions about corepack is getting some attention recently. Maybe we should restart the vote, or maybe it's still too early, I am not sure. To pick up...
@diraneyya Not sure how you followed the discussions, but I think what you described had already effectively happened in https://github.com/nodejs/package-maintenance/pull/606 (PMWG is a group of community members and this thread...
To elaborate the current `module.register()` API looks like this: ```js // register.js module.register('/path/to/hook.js'); // inherited by all child workers by default // hook.js export function resolve() { ... } ```...
> for instance a library that spawns a worker thread with some hooks and then this thread spawns the real user code. The user might also want to extend or...
Actually if we want to make it possible for the hooks to be dynamically enabled/disabled, we should add callbacks for users to customize what should be done when the hook...