Skip to content

Commit

Permalink
feat: support vapor template-only component
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Feb 19, 2025
1 parent 68855cf commit a75fe82
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 a75fe82

Please sign in to comment.