Skip to content

Commit

Permalink
[ci] yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott authored and actions-user committed Aug 8, 2021
1 parent 7188230 commit 11c75d3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/src/pages/reference/renderer-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' })],
};
},
};
```

Expand Down

0 comments on commit 11c75d3

Please sign in to comment.