Skip to content

Commit

Permalink
docs(ja): tweak code example (#1528)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomouchi authored and ktsn committed Mar 25, 2019
1 parent 0b1ceec commit 13dc501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ja/guide/hot-reload.md
Expand Up @@ -28,8 +28,8 @@ if (module.hot) {
module.hot.accept(['./mutations', './modules/a'], () => {
// 更新されたモジュールをインポートする
// babel 6 のモジュール出力のため、ここでは .default を追加しなければならない
const newActions = require('./actions').default
const newMutations = require('./mutations').default
const newModuleA = require('./modules/a').default
// 新しいモジュールとミューテーションにスワップ
store.hotUpdate({
mutations: newMutations,
Expand Down

0 comments on commit 13dc501

Please sign in to comment.