image-js / iobuffer

Read and write binary data in ArrayBuffers
http://image-js.github.io/iobuffer/
MIT License
43 stars 6 forks source link

add browser field for lib/ version too #43

Closed ghost closed 3 years ago

ghost commented 3 years ago

This patch adds the browser version of utf8.browser.js to the browser field. Without this I get:

Uncaught TypeError: util_1.TextDecoder is not a constructor

when I try to use the module from budo/browserify because the util browser module does not yet have Text{Encode,Decode} like node's version, although the environment does.