babel-plugin-annotate-pure-calls icon indicating copy to clipboard operation
babel-plugin-annotate-pure-calls copied to clipboard

Consider adding always effectful built-ins + configuration for them

Open Andarist opened this issue 8 years ago • 0 comments

Input code

var unusedTimerId = setInterval(function () {
  pingAPI()
})

Even though setInterval is used in assignment context and its result remain unused, its probably not desired to annotate (and therefore drop during minification) it.

Same applies for other timers and possibly some other built-ins.

Andarist avatar Sep 26 '17 13:09 Andarist