browserify / browser-resolve

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

fall back to 'browser' in deps without alt-browser field #64

Closed mvayngrib closed 9 years ago

mvayngrib commented 9 years ago

see scenario in https://github.com/defunctzombie/node-browser-resolve/issues/62 or added test

without the fallback, it'll choke as soon as it hits a nested browserifiable package without an alt browser field. This is kind of a step back to thinking of the "browser" field as a default, and an alt-browser field as an override