[ci] yarn format
This commit is contained in:
parent
42a6acee28
commit
0af70d68c2
1 changed files with 4 additions and 2 deletions
|
@ -689,10 +689,12 @@ async function compileHtml(enterNode: TemplateNode, state: CodegenState, compile
|
|||
}
|
||||
if (!componentInfo && !isCustomElementTag(componentName)) {
|
||||
if (hydrationAttributes.method) {
|
||||
throw new Error(`Unable to hydrate "${componentName}" because it is statically defined in the frontmatter script. Hydration directives may only be used on imported components.`);
|
||||
throw new Error(
|
||||
`Unable to hydrate "${componentName}" because it is statically defined in the frontmatter script. Hydration directives may only be used on imported components.`
|
||||
);
|
||||
}
|
||||
|
||||
// Previously we would throw here, but this is valid!
|
||||
// Previously we would throw here, but this is valid!
|
||||
// If the frontmatter script defines `const Element = 'h1'`,
|
||||
// you should be able to statically render `<Element>`
|
||||
|
||||
|
|
Loading…
Reference in a new issue