Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dleitee/babel-plugin-transform-remove-export
This plugin removes all export calls.
https://github.com/dleitee/babel-plugin-transform-remove-export
babel babel-plugin export remove-exports
Last synced: 2 months ago
JSON representation
This plugin removes all export calls.
- Host: GitHub
- URL: https://github.com/dleitee/babel-plugin-transform-remove-export
- Owner: dleitee
- Created: 2017-02-14T01:32:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-05T16:24:21.000Z (over 6 years ago)
- Last Synced: 2024-10-10T16:44:07.506Z (3 months ago)
- Topics: babel, babel-plugin, export, remove-exports
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# babel-plugin-transform-remove-export
This plugin removes all `export` calls.
## Example
**In**
```javascript
export const a = 1
export default ''
```**Out**
```javascript
```## Installation
```sh
npm install babel-plugin-transform-remove-export
```## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"plugins": ["transform-remove-export"]
}
```### Via CLI
```sh
babel --plugins transform-remove-export script.js
```### Via Node API
```javascript
require("babel-core").transform("code", {
plugins: ["transform-remove-export"]
});
```