Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Support module directories with index.js #175

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

albertogasparin
Copy link
Contributor

@albertogasparin albertogasparin commented Jun 16, 2017

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
Copy link

@albertogasparin Do you mean kebab-case not kebabCase?

@danny-andrews
Copy link
Contributor

This is siiiiiick. Any updates?

@albertogasparin
Copy link
Contributor Author

albertogasparin commented Aug 8, 2017

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

@pr0da
Copy link

pr0da commented May 7, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

None yet

5 participants