Détail du package

babel-plugin-module-extension

beilunyang2.5kMIT0.1.3

A babel plugin that transform the extension of the imported module

babel-plugin, transform extension

readme

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