From 35f6273d52d05d622c71192160895fe84dd9ee88 Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Fri, 11 Dec 2015 11:22:22 -0500 Subject: [PATCH] fix(hot-api): remove react-hot-api --- package.json | 1 - src/compile-support/cjsx.js | 2 ++ static/index.js | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 11e5f708b..41d5f6c9c 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,6 @@ "q": "^1.0.1", "raven": "0.7.2", "react": "^0.13.2", - "react-hot-api": "0.4.5", "reflux": "0.1.13", "request": "^2.53", "request-progress": "^0.3", diff --git a/src/compile-support/cjsx.js b/src/compile-support/cjsx.js index 8445e18ec..5d5c9f3e5 100644 --- a/src/compile-support/cjsx.js +++ b/src/compile-support/cjsx.js @@ -1,5 +1,7 @@ CoffeeScript = require('coffee-react'); +// TODO: Remove react-hot-api (which is deprecated) in favor of react-proxy +// // Note: This uses https://github.com/gaearon/react-hot-api and code from // https://github.com/BenoitZugmeyer/chwitt-react/blob/2d62184986c7c183955dcb607dba5ceda70a2221/bootstrap-jsx.js diff --git a/static/index.js b/static/index.js index 1496d1a6c..70cd59d4d 100644 --- a/static/index.js +++ b/static/index.js @@ -36,9 +36,12 @@ function setupWindow (loadSettings) { copyEnvFromMainProcess(); } - var hotreload = loadSettings.devMode && !loadSettings.isSpec; var CompileCache = require('../src/compile-cache') + + // TODO: Re-enable hotreloading when react-proxy is added. + var hotreload = false CompileCache.setHotReload(hotreload) + CompileCache.setHomeDirectory(loadSettings.configDirPath) var ModuleCache = require('../src/module-cache')