Introduce React.Perf in all non-production builds.

This commit is contained in:
Owen Conti
2017-08-11 15:55:19 -06:00
parent 8633372270
commit c237f25638
2 changed files with 6 additions and 1 deletions

View File

@@ -6,6 +6,11 @@ import ApisPreset from "core/presets/apis"
import * as AllPlugins from "core/plugins/all"
import { parseSearch } from "core/utils"
if (process.env.NODE_ENV !== "production") {
const Perf = require("react-addons-perf")
window.Perf = Perf
}
// eslint-disable-next-line no-undef
const { GIT_DIRTY, GIT_COMMIT, PACKAGE_VERSION, HOSTNAME, BUILD_TIME } = buildInfo