Open warmilk opened 6 years ago
@carolozar and I just came across this issue. We narrowed down the issue to a particular library, Scrollreveal, and then eventually found that that running this plugin over that code resulted in output JS which contains a syntax error.
I was going to attempt to write a patch to fix this, but then decided the regex in the sourcecode was too impenetrable to grok in the time I'm willing to spend. I then thought I'd give a PR which adds a failing test, but I can't even get your tests to run (".checkbuild
is not present inside project root nor inside default folder."), so I'll just give you a minimal test case.
console.log('foo')
bar()
When the above is run through this plugin, the output is the empty string.
It not work correct 😢
The blow is my code that want to delete the console.log()
this is my glup task code
I miss a semicolon at the console.log,then run this gulp test, the result is it delete the part of the try catch......... it delete the
which block after the console.log( )