mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
[ci] yarn format
This commit is contained in:
parent
71882300b0
commit
11c75d3f19
1 changed files with 8 additions and 7 deletions
|
@ -63,14 +63,15 @@ export default {
|
||||||
polyfills: ['./shadow-dom-polyfill.js'], // optional, module scripts that should be loaded before client hydration.
|
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.
|
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
|
jsxImportSource: 'preact', // optional, the name of the library from which JSX is imported
|
||||||
jsxTransformOptions: async () => { // optional, a function to transform JSX files
|
jsxTransformOptions: async () => {
|
||||||
const { default: { default: jsx }} = await import('@babel/plugin-transform-react-jsx');
|
// optional, a function to transform JSX files
|
||||||
|
const {
|
||||||
|
default: { default: jsx },
|
||||||
|
} = await import('@babel/plugin-transform-react-jsx');
|
||||||
return {
|
return {
|
||||||
plugins: [
|
plugins: [jsx({}, { runtime: 'automatic', importSource: 'preact' })],
|
||||||
jsx({}, { runtime: 'automatic', importSource: 'preact' })
|
};
|
||||||
]
|
},
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue