Skip to content

Commit

Permalink
fix: also generate render function if inline mode is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 17, 2022
1 parent 79c069c commit 9a325bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ export async function compileFile(

// template
// only need dedicated compilation if not using <script setup>

This comment has been minimized.

Copy link
@lidlanca

lidlanca May 21, 2022

comment is now out dated

if (descriptor.template && !descriptor.scriptSetup) {
if (
descriptor.template &&
(!descriptor.scriptSetup || store.options?.script?.inlineTemplate === false)
) {
const clientTemplateResult = doCompileTemplate(
store,
descriptor,
Expand Down

0 comments on commit 9a325bb

Please sign in to comment.