You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[output2]: [script2],// FIX: Should also depend on `two`
});
The import hook runs in a different thread to the rest of the code and this is where we open the file. I assume that the require hook code is failing to see that a file is open because the handle is null in the main thread.
Perhaps passing over a MessagePort would be the solution and to keep IO on the main thread.
The text was updated successfully, but these errors were encountered:
Using MessagePort seems to hang unless we explicitly call port2.close()#69
However, we don't know when to call port2.close() so I don't think we can use this method. This was copying the example in the node docs so I think there may be a bug somewhere.
I don't think the
require
hook is correctly working in thenode
plugin as dyndeps for CommonJS entry points are not working.ninjutsu-build/integration/src/node.test.ts
Lines 81 to 84 in 89b70c6
The
import
hook runs in a different thread to the rest of the code and this is where we open the file. I assume that therequire
hook code is failing to see that a file is open because the handle is null in the main thread.Perhaps passing over a
MessagePort
would be the solution and to keep IO on the main thread.The text was updated successfully, but these errors were encountered: