Skip to content

Commit 9ae056b

Browse files
authored
feat: support vapor template-only component (#322)
1 parent 33ca3c0 commit 9ae056b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/transform.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ async function doCompileScript(
316316

317317
return [code, compiledScript.bindings]
318318
} else {
319-
return [`\nconst ${COMP_IDENTIFIER} = {}`, undefined]
319+
const vaporFlag = descriptor.vapor ? '__vapor: true' :''
320+
return [`\nconst ${COMP_IDENTIFIER} = { ${vaporFlag} }`, undefined]
320321
}
321322
}
322323

0 commit comments

Comments
 (0)