fuse-box/fuse-box

Incorrect transpiling of export statement

starsolaris opened this issue · 4 comments

fuse-box: 4.0.0-next.440

export const showEventInfo = createAction(
  'SHOW_EVENT_INFO',
  action => (showEventInfo: boolean) => action(showEventInfo)
);

will produce:

exports.showEventInfo = createAction('SHOW_EVENT_INFO', action => showEventInfo => action(exports.showEventInfo));

instead of:

exports.showEventInfo = createAction('SHOW_EVENT_INFO', action => showEventInfo => action(showEventInfo));

maybe this is duplicate of #1942

hm... I will find some time during the weekend for these bugs.

@starsolaris please verify the fix (both issues) in 4.0.0-next.441

@nchanged, works as expected. 👍