Skip to content

Babel plugin: nested set not transformed #40

Description

@kube

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions