monolite
monolite copied to clipboard
Babel plugin: nested set not transformed
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
)
)