Skip to content

Commit ef47ac1

Browse files
01abhaynotrab
authored andcommitted
added browserlist in package.json & improved import for createBrowserHistory() (notrab#112)
1 parent acbacc4 commit ef47ac1

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,11 @@
2525
"redux-thunk": "2.3.0",
2626
"sanitize.css": "7.0.3",
2727
"serve": "10.1.2"
28-
}
28+
},
29+
"browserslist": [
30+
">0.2%",
31+
"not dead",
32+
"not ie <= 11",
33+
"not op_mini all"
34+
]
2935
}

src/store.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { createStore, applyMiddleware, compose } from 'redux'
22
import { connectRouter, routerMiddleware } from 'connected-react-router'
33
import thunk from 'redux-thunk'
4-
import createHistory from 'history/createBrowserHistory'
4+
import * as History from 'history'
55
import rootReducer from './modules'
66

7-
export const history = createHistory()
7+
export const history = History.createBrowserHistory()
88

99
const initialState = {}
1010
const enhancers = []

0 commit comments

Comments
 (0)