LGPL allow you to use the library in closed source.

Yes but you must distribute in a way where it's trivial to link in another version of the library. So a single wasm blob is a violation.