Skip to content

Commit 1a4cb33

Browse files
committed
feat: upgrade babel-plugin-dva-hmr to 0.2
1 parent 49b570a commit 1a4cb33

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

boilerplates/app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"index": "./src/index.js"
55
},
66
"dependencies": {
7-
"dva": "^1.0.0-beta4",
7+
"dva": "^1.1.0",
88
"react": "^15.1.0",
99
"react-dom": "^15.1.0"
1010
},
1111
"devDependencies": {
1212
"atool-build": "^0.8.0",
1313
"atool-test-mocha": "^0.1.5",
1414
"babel-plugin-dev-expression": "^0.2.1",
15-
"babel-plugin-dva-hmr": "^0.1.0",
15+
"babel-plugin-dva-hmr": "^0.2.0",
1616
"babel-plugin-transform-runtime": "^6.9.0",
1717
"babel-runtime": "^6.9.2",
1818
"dora": "^0.4.3",

boilerplates/app/webpack.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ module.exports = function(webpackConfig, env) {
66
// Support hmr
77
if (env === 'development') {
88
webpackConfig.devtool = '#eval';
9-
webpackConfig.babel.plugins.push(['dva-hmr', {
10-
entries: [
11-
'./src/index.js',
12-
],
13-
}]);
9+
webpackConfig.babel.plugins.push('dva-hmr');
1410
} else {
1511
webpackConfig.babel.plugins.push('dev-expression');
1612
}

0 commit comments

Comments
 (0)