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

warn() arguments are not being transpiled

Open
#47 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
13
Forks
13
PR merge metrics
No merged PRs in 30d

Description

```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

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the transformation shown in the issue for warn(...arguments), then compare it with the linked ember-simple-auth report. Trace the Babel plugin behavior responsible for leaving ES6 spread syntax in the output, and verify that the resulting code can be handled by ember-cli-uglify@1.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
compilers, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.