mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Set process.env.NODE_ENV to 'production' to speed up React
This commit is contained in:
@@ -157,6 +157,9 @@ class Atom extends Model
|
||||
# Still set NODE_PATH since tasks may need it.
|
||||
process.env.NODE_PATH = exportsPath
|
||||
|
||||
# Make react.js faster
|
||||
process.env.NODE_ENV ?= 'production'
|
||||
|
||||
@config = new Config({configDirPath, resourcePath})
|
||||
@keymaps = new KeymapManager({configDirPath, resourcePath})
|
||||
@keymap = @keymaps # Deprecated
|
||||
|
||||
Reference in New Issue
Block a user