mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-21 22:54:11 +08:00
fix(hot-api): remove react-hot-api
This commit is contained in:
parent
14f0086a02
commit
35f6273d52
3 changed files with 6 additions and 2 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue