utf8.js icon indicating copy to clipboard operation
utf8.js copied to clipboard

Fix loading as browserified in AMD style

Open inetfuture opened this issue 9 years ago • 3 comments

I use this library with browserify, then generate the dist for others to use. One of them tried to load it with requirejs with shim config, it failed, because this library take over the whole module.

I'm not sure if my change is appropriate, just tell me if you think it's not, thanks.

inetfuture avatar Apr 02 '15 07:04 inetfuture

Coverage Status

Coverage decreased (-0.74%) to 91.85% when pulling f371dd69b85bd4f2894c9ea27208f55ea57b6c35 on inetfuture:patch-1 into 792fdab75cb771514de0f9c902b9352b718a3a8b on mathiasbynens:master.

coveralls avatar Apr 02 '15 07:04 coveralls

@mathiasbynens please look into this

inetfuture avatar Jun 05 '15 02:06 inetfuture

Thank you @inetfuture ,I have the same problem,I think your patch works for me

stackOverMind avatar Nov 13 '15 05:11 stackOverMind