ember-cli / ember-cli/babel-plugin-debug-macros

warn() arguments are not being transpiled

未关闭
#47 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
TypeScript
星标
13
派生
13
PR 合并指标
30 天内没有已合并 PR

描述

```js
warn(...arguments);
```

is apparently being transpiled to

```js
(false && _ember.default.warn(...arguments));
```

but `...arguments` is ES6 code, which `ember-cli-uglify@1` is not able to handle.

see https://github.com/simplabs/ember-simple-auth/issues/1443

/cc @rwjblue

贡献指南

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

调研方向

复现 issue 中针对 warn(...arguments) 所展示的转换,然后将其与链接的 ember-simple-auth 报告进行比较。追踪导致 ES6 spread 语法保留在输出中的 Babel 插件行为,并验证生成的代码可以由 ember-cli-uglify@1 处理。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, typescript
领域
compilers, tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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