aseemk / requireDir

Node.js helper to require() directories.
MIT License
484 stars 60 forks source link

Support .es6 extensions #30

Closed mikeerickson closed 8 years ago

mikeerickson commented 8 years ago

Is there an easy way to support .es6 files, or should just modify require-dir source to allow it?

aseemk commented 8 years ago

It already supports it, as long as you've registered .es6 normally. =)

Two ways to do that:

Hope this helps!

aseemk commented 8 years ago

Please feel free to re-open if I didn't answer your q!

mikeerickson commented 8 years ago

Perfect, that's what I have been searching for (figured it was something like that but didn't know exactly what search for on Google)

Thx!