capaj / require-globify

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

hash not working with relative paths outside of folder. #5

Closed zolitch closed 9 years ago

zolitch commented 9 years ago

Hi.

There appears to be an issue with using the "hash" and "hashWithPaths" approach on thier own with relative paths outside of the current folder.

"hashWithExtensions" and "hashWithExtensionsAndPaths" both work fien but:

"hash" and "hashWithPaths" both fail with Browserify error:

ERROR [framework.browserify]: Error: Cannot find module '../../modules/ModuleName' in /current folder In other words, "../../" seems to be ignored and it looks in the current folder for "../../foo" as the module name.

call-a3 commented 9 years ago

I'll look into this. Please hang on...

call-a3 commented 9 years ago

I'm working on this. If you can, please check out the develop branch to see if the new version will fix your problem?

call-a3 commented 9 years ago

Should be fixed in 1.2.0. I'm deploying the new version when TravisCI comes back up (it's momentarily down for maintenance) and it gives the all-green.

zolitch commented 9 years ago

Thanks for fixing!