From 29976c6de0d52f8cde49598c6b26a1f9e3ec846e Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Tue, 21 Dec 2021 22:01:28 -0500 Subject: [PATCH] format (#2246) --- docs/src/pages/core-concepts/component-hydration.md | 3 ++- examples/fast-build/astro.config.mjs | 8 +++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/src/pages/core-concepts/component-hydration.md b/docs/src/pages/core-concepts/component-hydration.md index 8abb790e89..012df62936 100644 --- a/docs/src/pages/core-concepts/component-hydration.md +++ b/docs/src/pages/core-concepts/component-hydration.md @@ -62,10 +62,11 @@ Astro renders every component on the server **at build time**, unless [client:on import MyReactComponent from '../components/MyReactComponent.jsx'; --- ``` + Note that the renderer JS (e.g. React) and the component's CSS are downloaded with the page. The `client:*` directives only dictate when the component JS is imported and when the component is hydrated. ### `` diff --git a/examples/fast-build/astro.config.mjs b/examples/fast-build/astro.config.mjs index 32eca8696c..38a4a11404 100644 --- a/examples/fast-build/astro.config.mjs +++ b/examples/fast-build/astro.config.mjs @@ -2,10 +2,8 @@ import { imagetools } from 'vite-imagetools'; // @ts-check export default /** @type {import('astro').AstroUserConfig} */ ({ - renderers: [ - "@astrojs/renderer-vue" - ], + renderers: ['@astrojs/renderer-vue'], vite: { - plugins: [imagetools()] - } + plugins: [imagetools()], + }, });