17:00
<jakebailey>
I filed https://github.com/nodejs/node/issues/52599 which I hope sums up our discussion yesterday; please let me know if I got anything wrong!
20:04
<kriskowal>
Relevant here, naugtur has added loadNow and importNowHook to our Compartment shim and cleverly was able to use the same loader logic for both the sync and async drivers. This provides some support for an import.now that I think is coherent with Node.js doing a sync ESM import behind CJS require. https://github.com/endojs/endo/pull/2202
20:07
<kriskowal>
The motivations were similar. LavaMoat needed a way to fall through to a sync import for .node modules with computed module specifiers. Endo (the project surrounding our ses “Hardened JavaScript shim”) has a loader works a lot like a bundler and keeps CJS and ESM in the same graph. CJS relies on a “virtual module source” protocol as seen in the Compartments proposal.