I'd like to require a vendor module in my Brunch app (in my case, React, so I can run tests w/Jest which would need React to be required within the file itself, and it hasn't been an issue in the browser because I use a global React var).
The closest I've come is this similar question is: Loading vendor javascript as modules
However, I'd like to avoid manually requiring the path to my React module in every component though, if that were possible.
It doesn't look like there is a good solution with Brunch. Maybe there's something I can do with Jest itself to always require react for each component?