fix(hot-api): remove react-hot-api

This commit is contained in:
Evan Morikawa 2015-12-11 11:22:22 -05:00
parent 14f0086a02
commit 35f6273d52
3 changed files with 6 additions and 2 deletions

View file

@ -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",

View file

@ -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

View file

@ -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')