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 eeec3da commit a056f95Copy full SHA for a056f95
packages/plugin-vue-jsx/src/index.ts
@@ -167,6 +167,7 @@ function vueJsxPlugin(options: Options = {}): Plugin {
167
const declaration = _path.node
168
.declaration as types.CallExpression
169
const nodesPath = _path.replaceWithMultiple([
170
+ // const __default__ = defineComponent(...)
171
types.variableDeclaration('const', [
172
types.variableDeclarator(
173
types.identifier('__default__'),
@@ -176,6 +177,7 @@ function vueJsxPlugin(options: Options = {}): Plugin {
176
177
),
178
179
]),
180
+ // export default __default__
181
types.exportDefaultDeclaration(
182
183
0 commit comments