[ci] yarn format
This commit is contained in:
parent
20eaddb2a7
commit
b3150121d1
3 changed files with 12 additions and 14 deletions
|
@ -8,10 +8,7 @@ describe('Static build - frameworks', () => {
|
|||
before(async () => {
|
||||
fixture = await loadFixture({
|
||||
projectRoot: './fixtures/static-build-frameworks/',
|
||||
renderers: [
|
||||
'@astrojs/renderer-preact',
|
||||
'@astrojs/renderer-react'
|
||||
],
|
||||
renderers: ['@astrojs/renderer-preact', '@astrojs/renderer-react'],
|
||||
buildOptions: {
|
||||
experimentalStaticBuild: true,
|
||||
},
|
||||
|
|
|
@ -8,10 +8,15 @@ export default {
|
|||
default: { default: jsx },
|
||||
} = await import('@babel/plugin-transform-react-jsx');
|
||||
return {
|
||||
plugins: [jsx({}, {
|
||||
plugins: [
|
||||
jsx(
|
||||
{},
|
||||
{
|
||||
runtime: 'automatic',
|
||||
importSource: '@astrojs/renderer-react'
|
||||
})],
|
||||
importSource: '@astrojs/renderer-react',
|
||||
}
|
||||
),
|
||||
],
|
||||
};
|
||||
},
|
||||
viteConfig() {
|
||||
|
|
|
@ -5,8 +5,4 @@
|
|||
import jsxr from 'react/jsx-runtime.js';
|
||||
const { jsx, jsxs, Fragment } = jsxr;
|
||||
|
||||
export {
|
||||
jsx,
|
||||
jsxs,
|
||||
Fragment
|
||||
};
|
||||
export { jsx, jsxs, Fragment };
|
||||
|
|
Loading…
Reference in a new issue