The outermost parentheses are moved from
({ ... } = Object.assign(...))
to
({ ... }) = Object.assign(...)
which creates invalid Javascript 馃槺
export const assign = (globals: AnimatedGlobals): AnimatedGlobals =>
({
to,
now,
frameLoop,
colorNames,
skipAnimation,
createStringInterpolator,
requestAnimationFrame,
batchedUpdates,
willAdvance,
} = Object.assign(
{
to,
now,
frameLoop,
colorNames,
skipAnimation,
createStringInterpolator,
requestAnimationFrame,
batchedUpdates,
willAdvance,
},
pluckDefined(globals)
))
export const assign = (globals) => ({
to,
now,
frameLoop,
colorNames,
skipAnimation,
createStringInterpolator,
requestAnimationFrame,
batchedUpdates,
willAdvance
}) = Object.assign({
to,
now,
frameLoop,
colorNames,
skipAnimation,
createStringInterpolator,
requestAnimationFrame,
batchedUpdates,
willAdvance
}, pluckDefined(globals));
Thanks for the report. Really sorry about that. This should be fixed in version 0.6.16.
Most helpful comment
Thanks for the report. Really sorry about that. This should be fixed in version 0.6.16.