babel-plugin-module-extension
v0.1.3
Published
A babel plugin that transform the extension of the imported module
Maintainers
Readme
babel-plugin-module-extension
A babel plugin that transform the extension of the imported module
Install
npm install --save-dev babel-plugin-module-extension
// or
yarn add --dev babel-plugin-module-extensionUsage
// .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

