summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar natemoo-re <natemoo-re@users.noreply.github.com> 2021-07-08 21:48:26 +0000
committerGravatar GitHub Actions <actions@github.com> 2021-07-08 21:48:26 +0000
commit0af70d68c2d19220d3f578ed1309fd06a70178f7 (patch)
tree7fac8fd32ec68027af520a6aca197bbee7f74856
parent42a6acee284caebf597f9f0a11dcc01219d4230b (diff)
downloadastro-0af70d68c2d19220d3f578ed1309fd06a70178f7.tar.gz
astro-0af70d68c2d19220d3f578ed1309fd06a70178f7.tar.zst
astro-0af70d68c2d19220d3f578ed1309fd06a70178f7.zip
[ci] yarn format
-rw-r--r--packages/astro/src/compiler/codegen/index.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/astro/src/compiler/codegen/index.ts b/packages/astro/src/compiler/codegen/index.ts
index 6a5b5e546..39f39dc38 100644
--- a/packages/astro/src/compiler/codegen/index.ts
+++ b/packages/astro/src/compiler/codegen/index.ts
@@ -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>`