Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a44abfa

Browse filesBrowse files
committed
make vue-hot-reload-api a peer dep
1 parent 557dcb8 commit a44abfa
Copy full SHA for a44abfa

File tree

Expand file treeCollapse file tree

2 files changed

+6
-7
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-7
lines changed

‎lib/loader.js

Copy file name to clipboardExpand all lines: lib/loader.js
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ module.exports = function (content) {
130130
process.env.NODE_ENV !== 'production' &&
131131
(parts.script.length || parts.template.length)
132132
) {
133-
var hotReloadAPIPath = JSON.stringify(require.resolve('vue-hot-reload-api'))
134133
var scriptString = parts.script.length ? getRequireString('script', parts.script[0], 0) : ''
135134
var templateString = parts.template.length ? getRequireString('template', parts.template[0], 0, hasLocalStyles) : ''
136135
var accepted = []
@@ -145,7 +144,7 @@ module.exports = function (content) {
145144
'(function () {\n' +
146145
// shim the component directive so that it
147146
// registers the instances
148-
'var hotAPI = require(' + hotReloadAPIPath + ')\n' +
147+
'var hotAPI = require("vue-hot-reload-api")\n' +
149148
'hotAPI.install(require("vue"))\n' +
150149
'if (!hotAPI.compatible) return\n' +
151150
'var id = ' + (scriptString || templateString) + '\n' +

‎package.json

Copy file name to clipboardExpand all lines: package.json
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@
2727
"loader-utils": "^0.2.10",
2828
"parse5": "^1.5.0",
2929
"postcss": "^4.1.16",
30-
"postcss-selector-parser": "^1.1.2",
31-
"vue-hot-reload-api": "^1.2.0"
30+
"postcss-selector-parser": "^1.1.2"
3231
},
3332
"peerDependencies": {
3433
"vue-html-loader": "^1.0.0",
3534
"css-loader": "^0.21.0",
3635
"style-loader": "^0.13.0",
3736
"babel-loader": "^5.3.2",
38-
"babel-runtime": "^5.8.25"
37+
"babel-runtime": "^5.8.25",
38+
"vue-hot-reload-api": "^1.2.0"
3939
},
4040
"devDependencies": {
4141
"babel-core": "^5.8.25",
4242
"babel-loader": "^5.3.2",
4343
"chai": "^3.0.0",
44-
"css-loader": "^0.19.0",
44+
"css-loader": "^0.21.0",
4545
"eslint": "^1.6.0",
4646
"vue-html-loader": "^1.0.0",
4747
"jade": "^1.11.0",
@@ -52,7 +52,7 @@
5252
"object-assign": "^3.0.0",
5353
"rimraf": "^2.4.0",
5454
"source-map": "^0.5.1",
55-
"style-loader": "^0.12.4",
55+
"style-loader": "^0.13.0",
5656
"stylus-loader": "^1.4.0",
5757
"template-html-loader": "^0.0.3",
5858
"webpack": "^1.12.2"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.