Show detailed React errors/warnings in devMode

Fixes #3099.

React development mode has a lot of useful warnings and exceptions. These don't
show up in production mode. This change puts React into dev mode when Atom is
run via `atom --dev`.
This commit is contained in:
Desmond Brand
2014-07-27 16:06:00 -07:00
parent c748fc49bb
commit 65ffd21574

View File

@@ -150,7 +150,7 @@ class Atom extends Model
process.env.NODE_PATH = exportsPath
# Make react.js faster
process.env.NODE_ENV ?= 'production'
process.env.NODE_ENV ?= 'production' unless devMode
@config = new Config({configDirPath, resourcePath})
@keymaps = new KeymapManager({configDirPath, resourcePath})