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

hash does not work when only one file in the required directory #13

Closed
mparpaillon opened this issue May 20, 2015 · 1 comment
Closed

Comments

@mparpaillon
Copy link

Apparently when you require a directory which only has a single file, then the key appears with the full relative path and no extension, whatever your resolve options are.

Here is the test case (Bug only shows up when only one file in the target directory):

// Input
var templates = require('./templates/*.hbs', { mode: 'hash' });

// Output
var templates =  {
    './templates/zoning': require('./templates/zoning.hbs')
};

// Output expected
var templates =  {
    'zoning.hbs': require('./templates/zoning.hbs')
};

I know ! You want tests, screenshots of it, photo of me getting the bug while evil laughing.
But I already lost too much time on this bug so do whatever you want with that information.

@call-a3
Copy link
Collaborator

call-a3 commented May 20, 2015

I think you're exaggerating my expectations of a bug report, but I understand if you feel annoyed by my response on your previous bug report. I think I have everything I need from this report, so I'll look in to it as fast as I can ;)

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

No branches or pull requests

2 participants