Skip to content

Commit

Permalink
fix: window undefined in node environment
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Sep 27, 2016
1 parent 016494f commit 10d1768
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"dependencies": {
"babel-runtime": "^6.11.6",
"flatten": "^1.0.2",
"global": "^4.3.1",
"invariant": "^2.2.1",
"is-plain-object": "^2.0.1",
"react-redux": "4.4.x",
Expand Down
1 change: 1 addition & 0 deletions src/createDva.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import isPlainObject from 'is-plain-object';
import invariant from 'invariant';
import warning from 'warning';
import flatten from 'flatten';
import window from 'global/window';
import Plugin from './plugin';

const SEP = '/';
Expand Down

0 comments on commit 10d1768

Please sign in to comment.