lodash / babel-plugin-lodash

Modular Lodash builds without the hassle.
Other
1.96k stars 92 forks source link

Support module directories with index.js #175

Open albertogasparin opened 7 years ago

albertogasparin commented 7 years ago

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

AndersDJohnson commented 6 years ago

@albertogasparin Do you mean kebab-case not kebabCase?

danny-andrews commented 6 years ago

This is siiiiiick. Any updates?

albertogasparin commented 6 years ago

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

pr0da commented 6 years ago

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