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

Commit 1a19ef1

Browse files
sicau-hsuyangyangxu
and
yangxu
authored
fix: 🐛 fix compiled results with staticRenderFns in some case (#74)
Co-authored-by: yangxu <yangxu01@changba.com>
1 parent 0650050 commit 1a19ef1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/varlet-vue2-cli/src/compiler/compileSFC.ts

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export function injectRender(script: string, render: string): string {
1515
DEFINE_EXPORT_START_RE,
1616
`${render}\nexport default defineComponent({
1717
render,\
18+
staticRenderFns,\
1819
`
1920
)
2021
}
@@ -24,6 +25,7 @@ export function injectRender(script: string, render: string): string {
2425
EXPORT_START_RE,
2526
`${render}\nexport default {
2627
render,\
28+
staticRenderFns,\
2729
`
2830
)
2931
}

0 commit comments

Comments
 (0)