babel / babel/babel-upgrade

error on transform-export-extensions plugin upgrade

Open
#84 0 comments 0 reactions 0 assignees View on GitHub
bug Has PR
Dominant language
JavaScript
Stars
1.3k
Forks
53
PR merge metrics
No merged PRs in 30d

Description

here is a repo with failing test https://github.com/entria/graphql-dataloader-boilerplate/blob/master/.babelrc#L13

plugins: [
"transform-export-extensions"
]

will fail in babel-upgrade

it will generate:

```
plugins: [
[
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-export-namespace-from",
]
]
```

instead of:

```
plugins: [
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-export-namespace-from",
]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the failing .babelrc example at the linked graphql-dataloader-boilerplate location and run babel-upgrade to reproduce the nested plugin array. Trace how transform-export-extensions is converted to the two Babel proposal plugins. Done means the generated plugins list matches the flat expected output shown in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, javascript
Domain
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.