19d45496e7
* chore: update vite * fix(renderers): point renderers to resolved server/client entrypoints
15 lines
458 B
JavaScript
15 lines
458 B
JavaScript
export default {
|
|
name: '@astrojs/renderer-preact',
|
|
client: './client.js',
|
|
server: './server.js',
|
|
knownEntrypoints: ['preact', 'preact/jsx-runtime', 'preact-render-to-string'],
|
|
jsxImportSource: 'preact',
|
|
jsxTransformOptions: async () => {
|
|
const {
|
|
default: { default: jsx },
|
|
} = await import('@babel/plugin-transform-react-jsx');
|
|
return {
|
|
plugins: [jsx({}, { runtime: 'automatic', importSource: 'preact' })],
|
|
};
|
|
},
|
|
};
|