monolite icon indicating copy to clipboard operation
monolite copied to clipboard

Babel plugin: nested set not transformed

Open kube opened this issue 7 years ago • 0 comments

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 avatar Oct 17 '18 17:10 kube