From 4f3d71ff46ac3468250a0fd0165286e75ad2a610 Mon Sep 17 00:00:00 2001 From: tdzl2003 Date: Wed, 11 May 2016 10:48:08 +0800 Subject: [PATCH] fix #11 --- local-cli/src/bundle.js | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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": {