0.1.3 • Published 4 years ago
babel-plugin-module-extension v0.1.3
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-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