23 lines
576 B
JavaScript
23 lines
576 B
JavaScript
![]() |
const renderer = {
|
||
|
name: "astro:jsx",
|
||
|
serverEntrypoint: "astro/jsx/server.js",
|
||
|
jsxImportSource: "astro",
|
||
|
jsxTransformOptions: async () => {
|
||
|
const {
|
||
|
default: { default: jsx }
|
||
|
// @ts-expect-error
|
||
|
} = await import("@babel/plugin-transform-react-jsx");
|
||
|
const { default: astroJSX } = await import("./babel.js");
|
||
|
return {
|
||
|
plugins: [
|
||
|
astroJSX(),
|
||
|
jsx({}, { throwIfNamespace: false, runtime: "automatic", importSource: "astro" })
|
||
|
]
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
var renderer_default = renderer;
|
||
|
export {
|
||
|
renderer_default as default
|
||
|
};
|