Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable transforms for parameters/destructuring in Edge 18 #9139

Closed
saschanaz opened this issue Dec 7, 2018 · 1 comment
Closed

Disable transforms for parameters/destructuring in Edge 18 #9139

saschanaz opened this issue Dec 7, 2018 · 1 comment
Labels
Has PR i: bug outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: preset-env

Comments

@saschanaz
Copy link
Contributor

Bug Report

Current Behavior
babel-preset-env forces parameters/destructuring transforms for "last 1 Edge version"

Input Code

function foo({bar = ""} = {}) { return bar; }
var [c] = foo();

Expected behavior/code
It should just pass-through.

Babel Configuration (.babelrc, package.json, cli command)

{
  "presets": [
    [
      "@babel/preset-env",
      {
        "targets": "last 1 Firefox version, last 1 Chrome version, last 1 Safari version, last 1 Edge version",
        "modules": "amd"
      }
    ]
  ]
}

Environment

  • Babel version(s): v7.1.5
  • Node/npm version: Node 11/npm 6
  • OS: Windows 10
  • Monorepo: no
  • How you are using Babel: cli
@existentialism
Copy link
Member

Fixed in #9140

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Mar 8, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Has PR i: bug outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: preset-env
Projects
None yet
Development

No branches or pull requests

2 participants