babel-plugin-unexport
v1.0.4
Published
a babel-plugin to transform l-template tags.
Downloads
6
Readme
babel-plugin-unexport
This plugin allows Babel to remove export directives, declaration will remain.
Example
In
export function fname() {
}
Out
function fname() {
}
Installation
npm install --save-dev babel-plugin-unexport
Usage
Via .babelrc
(Recommended)
.babelrc
{
"plugins": ["unexport"]
}
Via CLI
babel --plugins unexport script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["unexport"]
});