Skip to content

Commit

Permalink
Generate SimpleEventPlugin data structures at runtime (#7616)
Browse files Browse the repository at this point in the history
We used to copy and paste the same big blob many times in order for it to work with keyOf which is no longer a constraint. This pull request takes a list of all the events as string and generate those data structures at runtime.

It reduces the size of React by 1k post gzip and flow is able to extract the structure out of it :)
(cherry picked from commit 1229a23)
  • Loading branch information
vjeux authored and zpao committed Oct 4, 2016
1 parent bef7ae4 commit ae79e02
Showing 1 changed file with 96 additions and 443 deletions.
Loading

0 comments on commit ae79e02

Please sign in to comment.