fix anonymous default exports
This commit is contained in:
parent
162b58eed8
commit
692f94a87a
20 changed files with 58 additions and 20 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import RPC from './utils/rpc';
|
||||
|
||||
export default new RPC();
|
||||
const rpc = new RPC();
|
||||
|
||||
export default rpc;
|
||||
|
|
|
|||
|
|
@ -9,8 +9,10 @@ import {composeWithDevTools} from '@redux-devtools/extension';
|
|||
import type {HyperState, HyperActions} from '../../typings/hyper';
|
||||
const thunk: ThunkMiddleware<HyperState, HyperActions> = _thunk;
|
||||
|
||||
export default () => {
|
||||
const configureStoreForDevelopment = () => {
|
||||
const enhancer = composeWithDevTools(applyMiddleware(thunk, plugins.middleware, thunk, writeMiddleware, effects));
|
||||
|
||||
return createStore(rootReducer, enhancer);
|
||||
};
|
||||
|
||||
export default configureStoreForDevelopment;
|
||||
|
|
|
|||
|
|
@ -8,5 +8,7 @@ import writeMiddleware from './write-middleware';
|
|||
import type {HyperState, HyperActions} from '../../typings/hyper';
|
||||
const thunk: ThunkMiddleware<HyperState, HyperActions> = _thunk;
|
||||
|
||||
export default () =>
|
||||
const configureStoreForProd = () =>
|
||||
createStore(rootReducer, applyMiddleware(thunk, plugins.middleware, thunk, writeMiddleware, effects));
|
||||
|
||||
export default configureStoreForProd;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
import configureStoreForProduction from './configure-store.prod';
|
||||
import configureStoreForDevelopment from './configure-store.dev';
|
||||
|
||||
export default () => {
|
||||
const configureStore = () => {
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
return configureStoreForProduction();
|
||||
}
|
||||
|
||||
return configureStoreForDevelopment();
|
||||
};
|
||||
export default configureStore;
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ export function fork() {
|
|||
console.error('Calling fork from renderer is disabled');
|
||||
}
|
||||
|
||||
export default {
|
||||
const IPCChildProcess = {
|
||||
exec,
|
||||
execSync,
|
||||
execFile,
|
||||
|
|
@ -57,3 +57,5 @@ export default {
|
|||
spawnSync,
|
||||
fork
|
||||
};
|
||||
|
||||
export default IPCChildProcess;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue