babel-plugin-unexport

1.0.4 • Public • Published

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"]
});

Package Sidebar

Install

npm i babel-plugin-unexport

Weekly Downloads

2

Version

1.0.4

License

MIT

Last publish

Collaborators

  • arash16