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

Babel plugin: nested set not transformed #40

Open
kube opened this issue Oct 17, 2018 · 0 comments
Open

Babel plugin: nested set not transformed #40

kube opened this issue Oct 17, 2018 · 0 comments
Assignees
Labels

Comments

@kube
Copy link
Owner

kube commented Oct 17, 2018

Nested set expressions are not transformed by the Babel Plugin:

set(
  state,
  _ => _.nested.collection,
  arr => arr.map(item =>
    set(item, _ => _.nested.prop, x => x + 1)
  )
)

After compilation it results in:

set(
  state,
  ['nested', 'collection'], // TRANSFORMED
  arr => arr.map(item =>
    set(item, _ => _.nested.prop, x => x + 1) // UNTOUCHED
  )
)
@kube kube added the bug label Oct 17, 2018
@kube kube changed the title Babel plugin: Nested set not resolved. Babel plugin: nested set not transformed Oct 17, 2018
@kube kube self-assigned this Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant