babel-plugin-annotate-pure-calls
babel-plugin-annotate-pure-calls copied to clipboard
Consider adding always effectful built-ins + configuration for them
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.