File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Original file line number Diff line number Diff line change @@ -130,7 +130,6 @@ module.exports = function (content) {
130
130
process . env . NODE_ENV !== 'production' &&
131
131
( parts . script . length || parts . template . length )
132
132
) {
133
- var hotReloadAPIPath = JSON . stringify ( require . resolve ( 'vue-hot-reload-api' ) )
134
133
var scriptString = parts . script . length ? getRequireString ( 'script' , parts . script [ 0 ] , 0 ) : ''
135
134
var templateString = parts . template . length ? getRequireString ( 'template' , parts . template [ 0 ] , 0 , hasLocalStyles ) : ''
136
135
var accepted = [ ]
@@ -145,7 +144,7 @@ module.exports = function (content) {
145
144
'(function () {\n' +
146
145
// shim the component directive so that it
147
146
// registers the instances
148
- 'var hotAPI = require(' + hotReloadAPIPath + ' )\n' +
147
+ 'var hotAPI = require("vue-hot-reload-api" )\n' +
149
148
'hotAPI.install(require("vue"))\n' +
150
149
'if (!hotAPI.compatible) return\n' +
151
150
'var id = ' + ( scriptString || templateString ) + '\n' +
Original file line number Diff line number Diff line change 27
27
"loader-utils" : " ^0.2.10" ,
28
28
"parse5" : " ^1.5.0" ,
29
29
"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"
32
31
},
33
32
"peerDependencies" : {
34
33
"vue-html-loader" : " ^1.0.0" ,
35
34
"css-loader" : " ^0.21.0" ,
36
35
"style-loader" : " ^0.13.0" ,
37
36
"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"
39
39
},
40
40
"devDependencies" : {
41
41
"babel-core" : " ^5.8.25" ,
42
42
"babel-loader" : " ^5.3.2" ,
43
43
"chai" : " ^3.0.0" ,
44
- "css-loader" : " ^0.19 .0" ,
44
+ "css-loader" : " ^0.21 .0" ,
45
45
"eslint" : " ^1.6.0" ,
46
46
"vue-html-loader" : " ^1.0.0" ,
47
47
"jade" : " ^1.11.0" ,
52
52
"object-assign" : " ^3.0.0" ,
53
53
"rimraf" : " ^2.4.0" ,
54
54
"source-map" : " ^0.5.1" ,
55
- "style-loader" : " ^0.12.4 " ,
55
+ "style-loader" : " ^0.13.0 " ,
56
56
"stylus-loader" : " ^1.4.0" ,
57
57
"template-html-loader" : " ^0.0.3" ,
58
58
"webpack" : " ^1.12.2"
You can’t perform that action at this time.
0 commit comments