browserify / browser-resolve

resolve function which support the browser field in package.json
MIT License
102 stars 70 forks source link

fixes string info.browser value #2

Closed ghost closed 11 years ago

ghost commented 11 years ago

In the dnode test for browserify info.browser is for some reason a string by the time browser-resolve tries to do Object.keys(). I'm not sure why this is, but this patch makes the dnode test behave correctly.

defunctzombie commented 11 years ago

Fixed a slightly different way that I think is more appropriate given what should happen. Published v0.0.2