fix: ensure components init when using lasso-marko

This commit is contained in:
dpiercey 2026-01-05 09:56:31 -07:00 committed by Dylan Piercey
parent e4e33288e6
commit 4ec6b5c96a
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"marko": patch
---
Ensure that compiling the hydrate output with lasso-marko and a lasso-page tag always initializes components.

View File

@ -163,6 +163,8 @@ export const entryBuilder = {
for (const tag of fileMeta.tags) {
if (tag.endsWith(".marko")) {
visitChild(tag);
} else if (/^@lasso\/marko-taglib\//.test(tag)) {
state.hasComponents = true;
} else {
const importedTemplates = tryGetTemplateImports(file, tag);
if (importedTemplates) {