mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
format (#2246)
This commit is contained in:
parent
e07c1cbd7e
commit
29976c6de0
2 changed files with 5 additions and 6 deletions
|
@ -66,6 +66,7 @@ import MyReactComponent from '../components/MyReactComponent.jsx';
|
|||
user's browser. -->
|
||||
<MyReactComponent client:visible />
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
### `<MyComponent client:load />`
|
||||
|
|
|
@ -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()],
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue