babel-plugin-lodash icon indicating copy to clipboard operation
babel-plugin-lodash copied to clipboard

Support module directories with index.js

Open albertogasparin opened this issue 8 years ago • 4 comments
trafficstars

If a folder contains index.js, then we add the folder name as an available namespace in the plugin cache. Moreover, we try to handle different styles for dir names (lowercase, kebab-case and snakeCase).

This should be a nice step forward to make this plugin a generic solution to reduce imports and improve tree shaking. Closes #166

albertogasparin avatar Jun 16 '17 13:06 albertogasparin

@albertogasparin Do you mean kebab-case not kebabCase?

AndersDJohnson avatar Aug 08 '17 18:08 AndersDJohnson

This is siiiiiick. Any updates?

danny-andrews avatar Aug 08 '17 18:08 danny-andrews

@AndersDJohnson Those where the names of lodash methods I've used to match folder naming. But I've made it more clear.

albertogasparin avatar Aug 08 '17 18:08 albertogasparin

Is there any plan to merge this PR? Do you need any help?

pr0da avatar May 07 '18 13:05 pr0da