1 | 'use strict';
|
2 |
|
3 | var compose = require('redux').compose;
|
4 |
|
5 | exports.__esModule = true;
|
6 | exports.composeWithDevTools =
|
7 | process.env.NODE_ENV !== 'production' &&
|
8 | typeof window !== 'undefined' &&
|
9 | window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
|
10 | ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
|
11 | : function () {
|
12 | if (arguments.length === 0) return undefined;
|
13 | if (typeof arguments[0] === 'object') return compose;
|
14 | return compose.apply(null, arguments);
|
15 | };
|
16 |
|
17 | exports.devToolsEnhancer =
|
18 | process.env.NODE_ENV !== 'production' &&
|
19 | typeof window !== 'undefined' &&
|
20 | window.__REDUX_DEVTOOLS_EXTENSION__
|
21 | ? window.__REDUX_DEVTOOLS_EXTENSION__
|
22 | : function () {
|
23 | return function (noop) {
|
24 | return noop;
|
25 | };
|
26 | };
|