YahooArchive / strip-loader

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

Extended support for striping function. #11

Closed sylvain-abadie closed 8 years ago

sylvain-abadie commented 8 years ago

Hello,

I extended support for striping function which could contain strings with closing parentheses inside like : console.log(' );' ); or simple function calls like : console.log( foo() ); and unit tests.

This could be a better solution for : https://github.com/yahoo/strip-loader/pull/5

@Vijar could you review this ?

Thanks

Vijar commented 8 years ago

@sylvain-abadie I like this but whats with all the added whitespace around arguments?

sylvain-abadie commented 8 years ago

Yep sorry ! I removed the white spaces in the last commit.