0.1.3 • Published 4 years ago

babel-plugin-module-extension v0.1.3

Weekly downloads
632
License
MIT
Repository
github
Last release
4 years ago

babel-plugin-module-extension

A babel plugin that transform the extension of the imported module

MIT

NPM

Install

npm install --save-dev babel-plugin-module-extension
// or
yarn add --dev babel-plugin-module-extension

Usage

// .babelrc
{
  "plugins": [
    ["module-extension", options]
  ]
}

Options

options is a object

{
  less: 'css', // less is your original ext, css is your target ext
  js: '', // if target ext is empty string, plugin will remove the ext
}

License

MIT