yahoo/react-i13n

Remove fbjs dependency

redonkulus opened this issue · 4 comments

@kaesonho

It is 5mb in size and only used for event listening. Can you port to use subscribe-ui-event instead?

Looks like subscribe-ui-event is only used for resize or scroll, we can use eventemitter3 instead. Need DOM support listeners, maybe we can find a library that isn't 5mb.

we are requiring fbjs/lib/EventListener directly,

will that still get all the 5mb code? or this is for server side pkg size

Was mainly for server package size. For client, the bundle would be small because of the direct require.

ok EventListener is just a helper wrapper, it's pretty simple, let me find some other pkg for this or either implement in react-i13n itself