mirror of
https://github.com/marko-js/marko.git
synced 2026-02-01 16:07:13 +00:00
fix: ensure components init when using lasso-marko
This commit is contained in:
parent
e4e33288e6
commit
4ec6b5c96a
5
.changeset/twelve-steaks-call.md
Normal file
5
.changeset/twelve-steaks-call.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"marko": patch
|
||||
---
|
||||
|
||||
Ensure that compiling the hydrate output with lasso-marko and a lasso-page tag always initializes components.
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user