babel-plugin-directory-named
When you import from a folder it resolves to the index.js
file
in that folder.
This plugin allows you to name the entry file the same as the folder.
Nice! Now you don't need to have a bajillion index.js
file scattered around
your project.
Quick start
Install the plugin first:
npm install --save-dev babel-plugin-directory-named