Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle filenames with .foo, where foo is not an extension #250

Merged
merged 2 commits into from
Oct 31, 2015

Conversation

Rich-Harris
Copy link
Contributor

This PR changes the behaviour of the default resolver such that it checks whether a path exists at resolution time rather than waiting for failure at load time. This allows us to add .js to an import path like ./foo.bar (where previously .bar was assumed to be the extension), thereby working around the ongoing consequences of Node's biggest design flaw (allowing extensions to be omitted).

Rich-Harris added a commit that referenced this pull request Oct 31, 2015
handle filenames with .foo, where foo is not an extension
@Rich-Harris Rich-Harris merged commit cf00621 into master Oct 31, 2015
@Rich-Harris Rich-Harris deleted the non-extension-dots branch October 31, 2015 23:10
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.

None yet

1 participant