Remove fbjs dependency
redonkulus opened this issue · 4 comments
redonkulus commented
It is 5mb in size and only used for event listening. Can you port to use subscribe-ui-event instead?
redonkulus commented
Looks like subscribe-ui-event is only used for resize or scroll, we can use Need DOM support listeners, maybe we can find a library that isn't 5mb.eventemitter3
instead.
kaesonho commented
we are requiring fbjs/lib/EventListener directly,
will that still get all the 5mb code? or this is for server side pkg size
redonkulus commented
Was mainly for server package size. For client, the bundle would be small because of the direct require.
kaesonho commented
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