From 74aca33a05f98720f6c4de26acea0a06902e24f1 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 28 Apr 2016 17:34:40 +0100 Subject: [PATCH] Fix problem --- scripts/build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/build b/scripts/build index cb8d694..f26f08a 100755 --- a/scripts/build +++ b/scripts/build @@ -18,3 +18,7 @@ echo "Fixing the hacks..." # React-Native doesnt like having .babelrc files in modules, and officially suggests not shipping react-native modules with them included. # This script scans all sub-dirs of node_modules, and removes any it finds, except the ones inside react-native itself. find node_modules -type f -name .babelrc | grep -v /react-native/ | xargs rm || echo "Already patched!" + +# There appears to be some problem with this module, whether it's in the babelify, or just some bug in the version we've locked to. +# Caused by 'self' not being defined in that scope. This fix pushes an update that just returns the built in fetch command. +echo "module.exports = fetch;" > node_modules/isomorphic-fetch/fetch-npm-browserify.js