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