aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar FredKSchott <FredKSchott@users.noreply.github.com> 2021-08-08 06:39:57 +0000
committerGravatar GitHub Actions <actions@github.com> 2021-08-08 06:39:57 +0000
commit11c75d3f199bd10bc1ecb0c14a0802ffae82470a (patch)
tree518c94e495613b95709b1fe5272833c10fcccf91
parent71882300b0447a0f4112d59cd4883982896e29d0 (diff)
downloadastro-11c75d3f199bd10bc1ecb0c14a0802ffae82470a.tar.gz
astro-11c75d3f199bd10bc1ecb0c14a0802ffae82470a.tar.zst
astro-11c75d3f199bd10bc1ecb0c14a0802ffae82470a.zip
[ci] yarn format
-rw-r--r--docs/src/pages/reference/renderer-reference.md15
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/src/pages/reference/renderer-reference.md b/docs/src/pages/reference/renderer-reference.md
index 115fb57f7..d40e1732a 100644
--- a/docs/src/pages/reference/renderer-reference.md
+++ b/docs/src/pages/reference/renderer-reference.md
@@ -63,14 +63,15 @@ export default {
polyfills: ['./shadow-dom-polyfill.js'], // optional, module scripts that should be loaded before client hydration.
hydrationPolyfills: ['./hydrate-framework.js'], // optional, polyfills that need to run before hydration ever occurs.
jsxImportSource: 'preact', // optional, the name of the library from which JSX is imported
- jsxTransformOptions: async () => { // optional, a function to transform JSX files
- const { default: { default: jsx }} = await import('@babel/plugin-transform-react-jsx');
+ jsxTransformOptions: async () => {
+ // optional, a function to transform JSX files
+ const {
+ default: { default: jsx },
+ } = await import('@babel/plugin-transform-react-jsx');
return {
- plugins: [
- jsx({}, { runtime: 'automatic', importSource: 'preact' })
- ]
- }
- }
+ plugins: [jsx({}, { runtime: 'automatic', importSource: 'preact' })],
+ };
+ },
};
```