Skip to content

Commit cb5f327

Browse files
committed
split vue-hot-reload-api
1 parent b6a3b65 commit cb5f327

File tree

3 files changed

+4
-186
lines changed

3 files changed

+4
-186
lines changed

lib/hot-reload-api.js

Lines changed: 0 additions & 183 deletions
This file was deleted.

lib/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ module.exports = function (content) {
122122
process.env.NODE_ENV !== 'production' &&
123123
(parts.script.length || parts.template.length)
124124
) {
125-
var hotReloadAPIPath = require.resolve('./hot-reload-api').replace(/\\/g, '\\\\')
125+
var hotReloadAPIPath = require.resolve('vue-hot-reload-api').replace(/\\/g, '\\\\')
126126
var scriptString = parts.script.length ? getRequireString('script', parts.script[0], 0) : ''
127127
var templateString = parts.template.length ? getRequireString('template', parts.template[0], 0, hasLocalStyles) : ''
128128
var accepted = []

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-loader",
3-
"version": "4.0.5",
3+
"version": "4.0.6",
44
"description": "Vue.js component loader for Webpack",
55
"main": "index.js",
66
"repository": {
@@ -27,7 +27,8 @@
2727
"loader-utils": "^0.2.10",
2828
"parse5": "^1.5.0",
2929
"postcss": "^4.1.16",
30-
"postcss-selector-parser": "^1.1.2"
30+
"postcss-selector-parser": "^1.1.2",
31+
"vue-hot-reload-api": "^1.0.0"
3132
},
3233
"peerDependencies": {
3334
"vue-html-loader": "^1.0.0",

0 commit comments

Comments
 (0)