capaj / require-globify

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

Doesn't look within node_modules #22

Closed saiichihashimoto closed 1 year ago

saiichihashimoto commented 9 years ago

Doing something like:

require('packagename/*/something', { mode: 'hash' });

does not work. Instead, I have to do something like:

require('../../node_modules/packagename/*/something', { mode: 'hash' });
call-a3 commented 9 years ago

This is correct. Right now require-globify assumes "real" relative paths, so npm packages are not recognized nor supported. I'll think of a way we can support these in the next version.

mividtim commented 8 years ago

I'd love to see this work!

btknorr commented 8 years ago

+1

call-a3 commented 8 years ago

Allright, by popular request (:p) I'll look into this this weekend. Shouldn't be too hard to implement...

saiichihashimoto commented 8 years ago

@call-a3, I'm imagining life happened so this never got worked on. :-)

But actually, is there any progress on this?

mividtim commented 7 years ago

Any updates here? I'll fork to work on this, if you have any ideas on where to start.