Skip to content

Commit e7295c3

Browse files
committed
Use lodash v4.
1 parent 6c39092 commit e7295c3

File tree

6 files changed

+12
-49
lines changed

6 files changed

+12
-49
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
},
6060
"homepage": "http://rackt.github.io/redux",
6161
"dependencies": {
62+
"lodash": "^4.1.0",
6263
"loose-envify": "^1.1.0"
6364
},
6465
"devDependencies": {

src/combineReducers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ActionTypes } from './createStore'
2-
import isPlainObject from './utils/isPlainObject'
2+
import isPlainObject from 'lodash/isPlainObject'
33
import warning from './utils/warning'
44

55
function getUndefinedStateErrorMessage(key, action) {

src/createStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import isPlainObject from './utils/isPlainObject'
1+
import isPlainObject from 'lodash/isPlainObject'
22

33
/**
44
* These are private action types reserved by Redux.

src/utils/isPlainObject.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

test/utils/isPlainObject.spec.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

webpack.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,18 @@ var config = {
1414
libraryTarget: 'umd'
1515
},
1616
plugins : [
17+
{
18+
apply: function apply(compiler) {
19+
compiler.parser.plugin('expression global', function expressionGlobalPlugin() {
20+
this.state.module.addVariable('global', "(function() { return this; }()) || Function('return this')()")
21+
return false
22+
});
23+
}
24+
},
1725
new webpack.optimize.OccurenceOrderPlugin(),
1826
new webpack.DefinePlugin({
1927
'process.env.NODE_ENV': JSON.stringify(env)
20-
})
28+
})
2129
]
2230
};
2331

0 commit comments

Comments
 (0)