babel-plugin-transform-remove-console icon indicating copy to clipboard operation
babel-plugin-transform-remove-console copied to clipboard

Simply not working?

Open nerdmed opened this issue 8 years ago • 3 comments

Dude i have tried it out just like in the example and it just filters all my console.statements:

console.log('TEST LOG');
console.error('TEST ERROR');

Here is the part of the babelrc

"env": {
    "production": {
      "plugins": [
        ["transform-remove-console-enhance", {
            "exclude": ["error"]
        }]
      ]
    }
  }

nerdmed avatar Jun 21 '17 23:06 nerdmed

Sorry about reply too late, I alway use this package in my project and work fine.

Riokai avatar Jul 13 '17 10:07 Riokai

I am using it with react native. Maybe there is an issue?

nerdmed avatar Jul 13 '17 12:07 nerdmed