Andarist / Andarist/babel-plugin-annotate-pure-calls

Consider adding always effectful built-ins + configuration for them

未关闭
#4 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
JavaScript
星标
95
派生
9
PR 合并指标
30 天内没有已合并 PR

描述

**Input code**
```js
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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。