browserify / browser-resolve

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

Fixing resolution of deep module references without a file extension #70

Closed src-code closed 9 years ago

src-code commented 9 years ago

Addresses issue #69. Original code had a bug in it where it'd append a second .js extension if the path already had an extension, rather than appending the extension if the path didn't already have an extension.

I also went ahead and added handling for .json as well, since require.resolve() does the same.

defunctzombie commented 9 years ago

@src-code sorry, I merged another fix prior to fix. Can you rebase plz.

src-code commented 9 years ago

Ack, I suck at rebase. Going to cherry pick into a new branch and try this again...