Closed mikeerickson closed 8 years ago
It already supports it, as long as you've registered .es6
normally. =)
Two ways to do that:
If you want to use Node's native ES6 support:
require.extensions['.es6'] = require.extensions['.js'];
requireDir('...');
require('babel/register')
or w/e before requireDir
.Hope this helps!
Please feel free to re-open if I didn't answer your q!
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!
Is there an easy way to support .es6 files, or should just modify require-dir source to allow it?