browserify / browser-resolve

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

resolving extensions #75

Closed ghost closed 8 years ago

ghost commented 8 years ago

This patch adds many more test cases for extension combinations and includes a fix to check extensions as fallbacks so that the browser field keys and values behave more like the node require algorithm.

I think in a later release it would be a good idea to pass through opts.extensions but for now a hard-coded ['.js','.json'] array works.

https://github.com/substack/node-browserify/issues/1435

ghost commented 8 years ago

Merged into 1.11.0.