Skip to content

Conversation

src-code
Copy link
Contributor

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
Copy link
Collaborator

@src-code does the nodejs require function fallback to trying json files?

@defunctzombie
Copy link
Collaborator

@src-code
Copy link
Contributor Author

@defunctzombie
Copy link
Collaborator

great!

defunctzombie added a commit that referenced this pull request Oct 15, 2015
Fixing resolution of deep module references without a file extension
@defunctzombie defunctzombie merged commit 224a2b1 into browserify:master Oct 15, 2015
@src-code src-code deleted the issue-69 branch October 15, 2015 18:21
@src-code
Copy link
Contributor Author

Thank you! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants