diff --git a/lib/index.js b/lib/index.js index 865b5ff..09015f7 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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__) }`