diff --git a/local-cli/src/bundle.js b/local-cli/src/bundle.js index e13d926..d769017 100644 --- a/local-cli/src/bundle.js +++ b/local-cli/src/bundle.js @@ -360,6 +360,9 @@ export const commands = { /local-cli/, ]); + // This line fix issue #11 + require(path.resolve('node_modules/react-native/local-cli/cli')); + const Config = require(path.resolve('node_modules/react-native/local-cli/util/Config')); const bundle = require(path.resolve('node_modules/react-native/local-cli/bundle/bundle')); const defaultConfig = require(path.resolve('node_modules/react-native/local-cli/default.config')); diff --git a/package.json b/package.json index f215c1f..b623f63 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-update", - "version": "1.0.4", + "version": "1.0.5", "description": "react-native hot update", "main": "lib/index.js", "scripts": {