File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ var parser = new parse5.Parser(null, { locationInfo: true })
3
3
4
4
module . exports = function ( content ) {
5
5
this . cacheable ( )
6
- var cb = this . async ( )
6
+
7
7
var output = {
8
8
template : [ ] ,
9
9
style : [ ] ,
@@ -24,10 +24,10 @@ module.exports = function (content) {
24
24
( type === 'script' || type === 'template' ) &&
25
25
output [ type ] . length > 0
26
26
) {
27
- return cb ( new Error (
27
+ throw new Error (
28
28
'[vue-loader] Only one <script> or <template> tag is ' +
29
29
'allowed inside a Vue component.'
30
- ) )
30
+ )
31
31
}
32
32
33
33
// handle src imports
@@ -88,7 +88,7 @@ module.exports = function (content) {
88
88
} )
89
89
} )
90
90
91
- cb ( null , 'module.exports = ' + JSON . stringify ( output ) )
91
+ return 'module.exports = ' + JSON . stringify ( output )
92
92
}
93
93
94
94
function commentScript ( content , lang ) {
You can’t perform that action at this time.
0 commit comments