Be more nodejs friendly, tweak some lines

This commit is contained in:
Josh Ponelat
2017-12-06 20:59:47 +02:00
parent e0ac7c11db
commit 733cddf146
3 changed files with 8 additions and 4 deletions

View File

@@ -3,11 +3,12 @@ import deepExtend from "deep-extend"
import System from "core/system"
import win from "core/window"
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")
if (process.env.NODE_ENV !== "production" && typeof window !== "undefined") {
win.Perf = require("react-addons-perf")
}
// eslint-disable-next-line no-undef