As mentioned in #165 we should look at the implementation of wrapping logic in the browser too. I don't think this is as important as getting things working for ESM and Deno.