Skip to content

Babel regression #3891

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

Closed
Timer opened this issue Jan 22, 2018 · 6 comments
Closed

Babel regression #3891

Timer opened this issue Jan 22, 2018 · 6 comments

Comments

@Timer
Copy link
Contributor

Timer commented Jan 22, 2018

let props = {}

const {
  defaultSort: { sort_column = null, sort_desc = false } = {},
} = props

=> assignment to constant var error

@Timer Timer added this to the 2.0.0 milestone Jan 22, 2018
@existentialism
Copy link
Contributor

Likely due to plugin-transform-destructuring being forced on and const's not being transpiled =/

@Timer
Copy link
Contributor Author

Timer commented Jan 22, 2018

Hmm, what's the solution here? Do we adjust the plugin to switch from const to let?

@ShubhangiMisra
Copy link

Hey can I take this up?

@gaearon
Copy link
Contributor

gaearon commented Jan 25, 2018

Sure if you know how to solve this. (I don't)

@viankakrisna
Copy link
Contributor

leaving this here for the people that is interested for a fix babel/babel#7333

@existentialism
Copy link
Contributor

Should be fixed in beta.41!

@lock lock bot locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants