Created by: gaearon
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 babel-runtime
is meant to be installed by the app, so I moved it to the peer dependencies.