From ff2ed2584ed498cb4ae0c340f41bee56f58ce296 Mon Sep 17 00:00:00 2001 From: Owen Conti Date: Sat, 19 Aug 2017 13:59:09 -0600 Subject: [PATCH] Revert Perf tool back to core/index.js --- src/core/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/index.js b/src/core/index.js index 3dbcede4..9f9e4c17 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -6,6 +6,10 @@ import ApisPreset from "core/presets/apis" import * as AllPlugins from "core/plugins/all" import { parseSearch } from "core/utils" +if (process.env.NODE_ENV !== "production") { + window.Perf = require("react-addons-perf") +} + // eslint-disable-next-line no-undef const { GIT_DIRTY, GIT_COMMIT, PACKAGE_VERSION, HOSTNAME, BUILD_TIME } = buildInfo