Add back perfprofiler, perflogger broke build

This commit is contained in:
JUDIT GRESKOVITS 2017-04-06 12:18:39 +01:00
parent 8118aaa94d
commit 44dc3f5a89
3 changed files with 10 additions and 10 deletions

View File

@ -3,7 +3,7 @@ import Article from '@components/article';
import Base, { global } from '@ui/components/base'; import Base, { global } from '@ui/components/base';
import BaselineGrid from '@ui/components/baseline-grid'; import BaselineGrid from '@ui/components/baseline-grid';
import { isProduction } from '@utils'; import { isProduction } from '@utils';
// import PerfProfiler from '@perf-profiler'; import PerfProfiler from '@perf-profiler';
import React from 'react'; import React from 'react';
class App extends React.Component { class App extends React.Component {
@ -33,12 +33,12 @@ class App extends React.Component {
</Base> </Base>
); );
/*const profiler = !isProduction() ? const profiler = !isProduction() ?
<PerfProfiler /> : null;*/ <PerfProfiler /> : null;
return ( return (
<div> <div>
{/*profiler*/} {profiler}
<Article name='application-content'> <Article name='application-content'>
{content} {content}
</Article> </Article>

View File

@ -4,7 +4,7 @@ import qs from 'querystring';
import a11y from 'react-a11y'; import a11y from 'react-a11y';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import React from 'react'; import React from 'react';
// import Perf from 'react-addons-perf'; import Perf from 'react-addons-perf';
import MockStateTesting from '@mock-states/testing'; import MockStateTesting from '@mock-states/testing';
import MockState from '@mock-states'; import MockState from '@mock-states';
@ -19,7 +19,7 @@ if ( !isProduction() ) {
ReactDOM ReactDOM
}); });
// window.Perf = Perf; window.Perf = Perf;
} }
const states = { const states = {

View File

@ -3,10 +3,10 @@ import { enableBatching } from 'redux-batched-actions';
import promiseMiddleware from 'redux-promise-middleware'; import promiseMiddleware from 'redux-promise-middleware';
import { createStore, compose, applyMiddleware } from 'redux'; import { createStore, compose, applyMiddleware } from 'redux';
import thunk from 'redux-thunk'; import thunk from 'redux-thunk';
import perflogger from 'redux-perf-middleware'; // import perflogger from 'redux-perf-middleware';
import createReducer from '@state/reducers'; import createReducer from '@state/reducers';
import { isProduction } from '@utils'; // import { isProduction } from '@utils';
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
@ -18,8 +18,8 @@ export default (state = Object.freeze({})) => {
applyMiddleware( applyMiddleware(
createLogger(), createLogger(),
promiseMiddleware(), promiseMiddleware(),
thunk, thunk/*,
!isProduction() && perflogger !isProduction() && perflogger*/
) )
) )
); );