Include react-addons-perf for non-production builds
This makes it possible to gather a few performance stats
This commit is contained in:
parent
abca28c80b
commit
a0b460b084
3 changed files with 10 additions and 1 deletions
|
@ -27,8 +27,15 @@ require('gemini-scrollbar/gemini-scrollbar.css');
|
|||
require('gfm.css/gfm.css');
|
||||
require('highlight.js/styles/github.css');
|
||||
|
||||
|
||||
// add React and ReactPerf to the global namespace, to make them easier to
|
||||
// access via the console
|
||||
global.React = require("react");
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
global.ReactPerf = require("react-addons-perf");
|
||||
}
|
||||
|
||||
var RunModernizrTests = require("./modernizr"); // this side-effects a global
|
||||
var React = require("react");
|
||||
var ReactDOM = require("react-dom");
|
||||
var sdk = require("matrix-react-sdk");
|
||||
sdk.loadSkin(require('../component-index'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue