A lot of langage have work in progress and or working GUI framework compiling to webassembly.
So yes. And you know what ? You shouldn't share too much code between backend and frontend.
The packages are node disavantage. You depends on too much packages it's a security risk.