UNPKG

1.08 kBJavaScriptView Raw
1import createStore from './createStore';
2import combineReducers from './combineReducers';
3import bindActionCreators from './bindActionCreators';
4import applyMiddleware from './applyMiddleware';
5import compose from './compose';
6import warning from './utils/warning';
7
8/*
9* This is a dummy function to check if the function name has been altered by minification.
10* If the function has been minified and NODE_ENV !== 'production', warn the user.
11*/
12function isCrushed() {}
13
14if (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
15 warning('You are currently using minified code outside of NODE_ENV === \'production\'. ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) ' + 'to ensure you have the correct code for your production build.');
16}
17
18export { createStore, combineReducers, bindActionCreators, applyMiddleware, compose };
\No newline at end of file