1.0.4 • Published 7 years ago
babel-plugin-unexport v1.0.4
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"]
});