kjelsrud.dev/node_modules/astro/dist/jsx/renderer.js
2023-07-19 21:31:30 +02:00

22 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
};