0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-03 22:29:08 -05:00

[ci] yarn format

This commit is contained in:
natemoo-re 2021-07-08 21:48:26 +00:00 committed by GitHub Actions
parent 42a6acee28
commit 0af70d68c2

View file

@ -689,7 +689,9 @@ 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!