|
@@ -28,8 +28,8 @@ if (module.hot) {
|
|
module.hot.accept(['./mutations', './modules/a'], () => {
|
|
module.hot.accept(['./mutations', './modules/a'], () => {
|
|
// 更新されたモジュールをインポートする
|
|
// 更新されたモジュールをインポートする
|
|
// babel 6 のモジュール出力のため、ここでは .default を追加しなければならない
|
|
// babel 6 のモジュール出力のため、ここでは .default を追加しなければならない
|
|
- const newActions = require('./actions').default
|
|
|
|
const newMutations = require('./mutations').default
|
|
const newMutations = require('./mutations').default
|
|
|
|
+ const newModuleA = require('./modules/a').default
|
|
// 新しいモジュールとミューテーションにスワップ
|
|
// 新しいモジュールとミューテーションにスワップ
|
|
store.hotUpdate({
|
|
store.hotUpdate({
|
|
mutations: newMutations,
|
|
mutations: newMutations,
|