capaj / require-globify

transform for browserify, which allows to require files with globbing expressions
MIT License
70 stars 11 forks source link

strip-ext doesn't work when called after path-reduce #12

Closed mparpaillon closed 9 years ago

mparpaillon commented 9 years ago

This works (extensions are stripped)

var stuff = require('../stuff/*.js', {
    mode: 'hash',
    resolve: [ 'strip-ext', 'path-reduce' ]
});

This doesn't

var stuff = require('../stuff/*.js', {
    mode: 'hash',
    resolve: [ 'path-reduce', 'strip-ext' ]
});
call-a3 commented 9 years ago

Could you elaborate on the output you would expect vs the output you are getting?

mparpaillon commented 9 years ago

I expect the filename without the extension... That's what strip-ext is supposed to do, right ?

call-a3 commented 9 years ago

Yes, that is right.

However, to more accurately debug this I'd like a literal example of input, actual output and expected output. That way, I can also turn it into a test case and ensure no regressions occur at a later point. Sorry if I seem overly adamant about this, but it is with the best intentions for both our sakes.

call-a3 commented 9 years ago

Investigating this because it is related to bug #13