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 2f66ef4 commit 8b3ebd6Copy full SHA for 8b3ebd6
lib/generate-code.js
@@ -28,10 +28,20 @@ module.exports = function generateCode(
28
29
var tempOutput = node.toString()
30
31
+ console.log(tempOutput)
32
+
33
+ if (
34
+ tempOutput.match(/\}\(.*.?Vue\);/) &&
35
+ tempOutput.includes('vue-class-component')
36
+ ) {
37
+ node.add(';exports.default = {...exports.default.__vccBase};')
38
+ }
39
40
if (tempOutput.includes('exports.render = render;')) {
41
node.add(';exports.default = {...exports.default, render};')
42
} else {
43
node.add(';exports.default = {...exports.default};')
44
}
45
46
return node.toStringWithSourceMap({ file: filename })
47
0 commit comments