# babel-plugin-transfrom-remove-console-in-produce

> remove console for render opt in beta publish

Latest version **1.0.1** (published 2018-01-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-transfrom-remove-console-in-produce
pnpm add babel-plugin-transfrom-remove-console-in-produce
yarn add babel-plugin-transfrom-remove-console-in-produce
bun add babel-plugin-transfrom-remove-console-in-produce
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-01-09 |
| First published | 2017-12-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | natureless |
| Maintainers | wethk |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-transfrom-remove-console-in-produce
- npm.io page: https://npm.io/package/babel-plugin-transfrom-remove-console-in-produce

## Recent versions

- 1.0.1 (latest) — 2018-01-09
- 1.0.0 — 2017-12-28

## README

## babel-plugin-remove-console
RN中的console.log与chrome实现不一致，safrai 的JSC中 console时会进行JSON.stringify,损耗性能，可以通过环境判断，Jenkin打包是linux平台，本地开发多为win/mac，本地环境时不remove console。

npm包名：babel-plugin-remove-console

```js

const babel = require('babel-core');

const code = `
class A{
    change(){
        var a = 1
    }

    onPress(){
        var w= 2
        console.log(1111)
    }
}`


const result = babel.transform(code,{
    plugins:['./babel-plugin-remove-console.js']
})

//转换后
class A{
    change(){
        var a = 1
    }

    onPress(){
        var w= 2
    }
}


```

---
_Source: https://npm.io/package/babel-plugin-transfrom-remove-console-in-produce · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
