I recently created a base class in a file and then tried extending it in a different class in a different file. What I quickly realized is that class definitions are not hoisted and when Babel combined the multiple files the order is such that the base class in not defined yet when I instantiate the inherited class (throwing an error).
What is the solution here? Should I be putting everything into modules? Does that solve the "dependency order" issue I am experiencing here? Getting modules to work in current browsers seems very convoluted for the relatively simple stuff I am doing right now. Is there some other work around that solves this or is the only way to deal with it making sure that your base class definitions are executed first?