I am doing this:
require('./i18n/*.js', {mode: 'expand', resolve: 'strip-ext'});
but this still keeps the .js in the generated require calls. I know that not all resolve functions would make sense with expand, but this one does. I need it because later I just require('./i18n/en'), which cannot find the module.
thanks!
I am doing this:
but this still keeps the
.jsin the generated require calls. I know that not all resolve functions would make sense with expand, but this one does. I need it because later I justrequire('./i18n/en'), which cannot find the module.thanks!