forked from enviPath/enviPy
Current Dev State
This commit is contained in:
34
static/js/ketcher2/node_modules/redux/src/index.js
generated
vendored
Normal file
34
static/js/ketcher2/node_modules/redux/src/index.js
generated
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
import createStore from './createStore'
|
||||
import combineReducers from './combineReducers'
|
||||
import bindActionCreators from './bindActionCreators'
|
||||
import applyMiddleware from './applyMiddleware'
|
||||
import compose from './compose'
|
||||
import warning from './utils/warning'
|
||||
|
||||
/*
|
||||
* This is a dummy function to check if the function name has been altered by minification.
|
||||
* If the function has been minified and NODE_ENV !== 'production', warn the user.
|
||||
*/
|
||||
function isCrushed() {}
|
||||
|
||||
if (
|
||||
process.env.NODE_ENV !== 'production' &&
|
||||
typeof isCrushed.name === 'string' &&
|
||||
isCrushed.name !== 'isCrushed'
|
||||
) {
|
||||
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.'
|
||||
)
|
||||
}
|
||||
|
||||
export {
|
||||
createStore,
|
||||
combineReducers,
|
||||
bindActionCreators,
|
||||
applyMiddleware,
|
||||
compose
|
||||
}
|
||||
Reference in New Issue
Block a user