Tanner Lisnley did this with React. He didn't share it but talked about his experience. Basically, he re-wrote React with only the parts he was interested in. Sort of like his own version of Preact. You might be interested in his blog post about the subject: https://tannerlinsley.com/posts/projecting-react