browserify / browser-resolve

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

Ensure a default value is set for options.filename #81

Closed nkoterba closed 4 years ago

nkoterba commented 8 years ago

Starting with Node v6+, path.dirname will not accept undefined inputs. Use the Node global variable __filename as a default value if filename is not passed in in the configuration object to node-browser-resolve-call.

goto-bus-stop commented 4 years ago

Thanks for the PR! This was eventually fixed by #80.