Unity WebGL build

I am using Rhino3dm inside unity and it works great for my windows application.
I want to be able to export the same application from Unity to HTML5/WebGL with wasm.
Since, rhino3dm is available as wasm separately it should be possible to link it inside unity.
Has anyone tried doing the same