32b62ef055
Summary: @public This was a hard one, bare with me on the full story of what happened. We recently started writting additional JS scripts in ES6 for the cli. These code needs to be transformed by babel before we execute it as we don't run node with `--harmony`. To do so we removed the `only` attribute on the `babel-register`. Turns out this broke the packager on oss as if no `only` not `ignore` parameter is specified babel will ignore `node_modules`. Since on oss when a project is created `react-native-github` is located inside of `node_modules` we started getting syntax errors. The fix is to include separately all the different paths we need to make sure babel transforms each of them. We cannot simply have a single `babel-core/register` as we need to include paths that belong both to oss and internal only. So, we need to have multiple `register` invocations. Since babel does not accumulate the `only` you send on every invocation we need to build a small wrapper to do so. Reviewed By: @frantic Differential Revision: D2522426 fb-gh-sync-id: 379a7bb169c7d5cb3002268742de269238bba766 |
||
---|---|---|
.. | ||
src | ||
index.js |