diff options
author | 2021-07-08 18:09:16 +0000 | |
---|---|---|
committer | 2021-07-08 18:09:16 +0000 | |
commit | c0d4e8430f7a751556eec0c1466dc4327f2ec4ee (patch) | |
tree | e7acb15e157ad4a921cb761434fdb6d7bd4c5756 | |
parent | 0a7b6deaec9fa32c2cb7139ac9aeaa242c0a7f4c (diff) | |
download | astro-c0d4e8430f7a751556eec0c1466dc4327f2ec4ee.tar.gz astro-c0d4e8430f7a751556eec0c1466dc4327f2ec4ee.tar.zst astro-c0d4e8430f7a751556eec0c1466dc4327f2ec4ee.zip |
[ci] yarn format
-rw-r--r-- | packages/astro/src/compiler/codegen/index.ts | 12 | ||||
-rw-r--r-- | packages/astro/src/compiler/transform/head.ts | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/packages/astro/src/compiler/codegen/index.ts b/packages/astro/src/compiler/codegen/index.ts index af74a368a..7bfb55f53 100644 --- a/packages/astro/src/compiler/codegen/index.ts +++ b/packages/astro/src/compiler/codegen/index.ts @@ -181,7 +181,7 @@ function getComponentWrapper(_name: string, hydration: HydrationAttributes, { ur let name = _name; let method = hydration.method; - + /** Legacy support for original hydration syntax */ if (name.indexOf(':') > 0) { const [legacyName, legacyMethod] = _name.split(':'); @@ -221,11 +221,11 @@ function getComponentWrapper(_name: string, hydration: HydrationAttributes, { ur }; const importInfo = method - ? { - componentUrl: getComponentUrl(astroConfig, url, pathToFileURL(filename)), - componentExport: getComponentExport() - } - : {}; + ? { + componentUrl: getComponentUrl(astroConfig, url, pathToFileURL(filename)), + componentExport: getComponentExport(), + } + : {}; return { wrapper: `__astro_component(${name}, ${JSON.stringify({ hydrate: method, displayName: _name, ...importInfo })})`, diff --git a/packages/astro/src/compiler/transform/head.ts b/packages/astro/src/compiler/transform/head.ts index 9a12e395b..94105a03f 100644 --- a/packages/astro/src/compiler/transform/head.ts +++ b/packages/astro/src/compiler/transform/head.ts @@ -22,7 +22,7 @@ export default function (opts: TransformOptions): Transformer { InlineComponent: { enter(node) { if (hasComponents) { - return + return; } if (node.attributes && node.attributes.some(({ name }: any) => name.startsWith('client:'))) { |