/babel-plugin-directory-named-module

Another babel plugin to save your time and keyboard :)

Primary LanguageJavaScriptMIT LicenseMIT

babel-plugin-directory-named-module

NPM

Example

Babel plugin to resolve

import module from 'path/to/module'

into

import module from 'path/to/module/module.js'

Usage

npm install babel-plugin-directory-named-module --save-dev

Edit .babelrc

{
  "plugins": [
    "directory-named-module"
  ]
}