Now we can only link "standard" modules with functions combined with SyntheticModules, like this:
await module.link( function( spec ) {
return new Promise( async function( resolve, reject ) {
const mod = await import( spec );
resolve( new vm.SyntheticModule( [ 'default' ], function() {
this.setExport( 'default', mod.default );
}, { context } ) );
} )
} );
https://nodejs.org/api/vm.html#vm_module_link_linker
Now we can only link "standard" modules with functions combined with SyntheticModules, like this: