We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 322cf4d commit 57d6d7dCopy full SHA for 57d6d7d
lib/loader.js
@@ -214,13 +214,14 @@ module.exports = function (content) {
214
process.env.NODE_ENV !== 'production' &&
215
(parts.script.length || parts.template.length)
216
) {
217
+ var hotId = JSON.stringify(moduleId + '/' + fileName)
218
output +=
219
'if (module.hot) {(function () {' +
220
' module.hot.accept()\n' +
221
' var hotAPI = require("vue-hot-reload-api")\n' +
222
' hotAPI.install(require("vue"), false)\n' +
223
' if (!hotAPI.compatible) return\n' +
- ' var id = ' + loaderUtils.stringifyRequest(loaderContext, filePath) + '\n' +
224
+ ' var id = ' + hotId + '\n' +
225
' if (!module.hot.data) {\n' +
226
// initial insert
227
' hotAPI.createRecord(id, module.exports)\n' +
0 commit comments