astro-ghostcms/.pnpm-store/v3/files/65/6566b19213fa37ac788c668a493...

21 lines
576 B
Plaintext
Raw Normal View History

2024-02-14 14:10:47 +00:00
const renderer = {
name: "astro:jsx",
serverEntrypoint: "astro/jsx/server.js",
jsxImportSource: "astro",
jsxTransformOptions: async () => {
const plugin = await import("@babel/plugin-transform-react-jsx");
const jsx = plugin.default?.default ?? plugin.default;
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
};