Library issue: yJs synchronisation and client (state) being overwritten

Yes, and y-webrtc defines yjs as peer dependency, which is why skypack pulls it in as well. If you want to attempt client-side bundling and are feeling adventurous, you could take a stab at jspm + import maps: Import Map Generator - JSPM2