From 65ffd21574885343df1a19f370351850f45dd913 Mon Sep 17 00:00:00 2001 From: Desmond Brand Date: Sun, 27 Jul 2014 16:06:00 -0700 Subject: [PATCH] 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`. --- src/atom.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atom.coffee b/src/atom.coffee index 4489d8ba7..2eb40d700 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -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})