Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Resolve regenerator runtime relative to react-scripts #2175
This removes a hack that caused an absolute path to be embedded in the modules after being processed by our Babel preset. This hack doesn’t matter for apps that are bundled, but it breaks libraries.
The hack was in the wrong place. We can’t really get around the fact that regenerator runtime is resolved from the consuming application. So instead we should embrace it, and redirect at the webpack config level instead. Additionally the preset should make it clear