Skip to content

Commit

Permalink
fix(vue-jsx): custom factory name
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed May 13, 2024
1 parent 9a97346 commit 39c305f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eleven-turtles-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pandacss/generator": patch
---

Vue JSX: Fix issue where using custom `jsxFactory` name causes a runtime error
2 changes: 1 addition & 1 deletion packages/generator/src/artifacts/vue-jsx/jsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function generateVueJsxFactory(ctx: Context) {
export const ${factoryName} = /* @__PURE__ */ styledFn.bind();
tags.split(', ').forEach((tag) => {
styled[tag] = styled(tag);
${factoryName}[tag] = ${factoryName}(tag);
});
`,
}
Expand Down

0 comments on commit 39c305f

Please sign in to comment.