Skip to content

Commit

Permalink
Fix hot reload code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Toilal committed Oct 14, 2017
1 parent a5f37eb commit 4b6d124
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ if (module.hot) {(function(options) {
if (api.compatible) {
module.hot.accept()
if (!module.hot.data) {
api.createRecord(${id}, options)
api.createRecord("${id}", options)
} else {
api.reload(${id}, options)
api.reload("${id}", options)
}
}})(__component__)
}`
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"acorn": "^4.0.4",
"escodegen": "^1.8.1",
"estraverse": "^4.2.0",
"hash-sum": "^1.0.2",
"vue-hot-reload-api": "^2.0.7"
}
}

0 comments on commit 4b6d124

Please sign in to comment.