parro-it/folderify

support for requireDir

benjamine opened this issue · 1 comments

I found this plugin looking for an equivalent for https://github.com/aseemk/requireDir, is there any plan to support requireDir on this same plugin, or create a separate one?
in that case I wonder if I should this one as a base for a "requireDirify"?

Hi Benjamine. No, I have no plan to support requireDir in folderify, because requireDir has really different semantic than include-folder module folderify replace.

The main difference that come to mind is that by browserifying requireDir calls, you have to include more js modules in browserify outputs, and you have to browserify each of them.

Anyway, feel free to fork folderify as a starting point, and if you need help developing requireDirify, please count me on. I also use requireDir and such plugin could be useful to me too.