Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
fix: 🐛 fix compiled results with staticRenderFns in some case (#74)
Browse files Browse the repository at this point in the history
Co-authored-by: yangxu <[email protected]>
  • Loading branch information
sicau-hsuyang and yangxu authored Jan 8, 2025
1 parent 0650050 commit 1a19ef1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/varlet-vue2-cli/src/compiler/compileSFC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export function injectRender(script: string, render: string): string {
DEFINE_EXPORT_START_RE,
`${render}\nexport default defineComponent({
render,\
staticRenderFns,\
`
)
}
Expand All @@ -24,6 +25,7 @@ export function injectRender(script: string, render: string): string {
EXPORT_START_RE,
`${render}\nexport default {
render,\
staticRenderFns,\
`
)
}
Expand Down

0 comments on commit 1a19ef1

Please sign in to comment.