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

import with a '.' in the filename resulting in an incorrect path when compiled #74

Closed
kellyrmilligan opened this issue Aug 22, 2016 · 3 comments
Labels

Comments

@kellyrmilligan
Copy link

import 'lib/custom.modernizr3'

results in

require('./lib/custom.modernizr3.modernizr3');

when I change it to not have the '.' in the middle, it works great.

@tleunen tleunen added the bug label Aug 22, 2016
@tleunen
Copy link
Owner

tleunen commented Aug 22, 2016

Thanks for reporting the issue @kellyrmilligan

tleunen added a commit that referenced this issue Aug 22, 2016
Checking the extension of the source file and the real file allows us to verify it's a real extension of something from the filename.

Fixes #74
@tleunen
Copy link
Owner

tleunen commented Aug 22, 2016

Released as 2.1.1 ;)

@kellyrmilligan
Copy link
Author

Awesome will try it out soon

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

No branches or pull requests

2 participants