housekeeping: remove react-addons-perf dependency (via #5229)

* Remove react-addons-perf dependency

* update lockfile

* include ReactPerf in non-production builds
This commit is contained in:
Peter Goldthorp
2019-03-14 20:36:49 -04:00
committed by kyle
parent c6d1cc9c72
commit 1497271155
5 changed files with 18 additions and 50 deletions

View File

@@ -8,7 +8,7 @@ import * as AllPlugins from "core/plugins/all"
import { parseSearch } from "core/utils"
if (process.env.NODE_ENV !== "production" && typeof window !== "undefined") {
win.Perf = require("react-addons-perf")
win.Perf = require("react-dom/lib/ReactPerf")
}
// eslint-disable-next-line no-undef