YahooArchive / strip-loader

Webpack loader to strip arbitrary functions out of your production code.
Other
282 stars 14 forks source link

No stripping occurs when function is called within console.log #12

Open gcorgnet opened 8 years ago

gcorgnet commented 8 years ago

Using the configuration

{test: /.js$/, loader: 'strip-loader?strip[]=console.log'}

For the below code snippet in the file, leads to no stripping

console.log(JSON.stringify(someObject));

Error

The console.log statement is not stipped off

zolrath commented 8 years ago

This is biting me right now as well as I call the Immutable.js .toJS() on objects in quite a few of my log statements.