Skip to content

Commit

Permalink
feat: support vapor template-only component (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 authored Feb 19, 2025
1 parent 33ca3c0 commit 9ae056b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ async function doCompileScript(

return [code, compiledScript.bindings]
} else {
return [`\nconst ${COMP_IDENTIFIER} = {}`, undefined]
const vaporFlag = descriptor.vapor ? '__vapor: true' :''
return [`\nconst ${COMP_IDENTIFIER} = { ${vaporFlag} }`, undefined]
}
}

Expand Down

0 comments on commit 9ae056b

Please sign in to comment.