Files
ry.kazcloud.dev/node_modules/astro/dist/jsx/transform-options.js
Ryan Kazokas d181f77fb2
All checks were successful
Build and Push / build (push) Successful in 55s
Updates dockerfile
2026-02-16 15:09:37 -05:00

15 lines
403 B
JavaScript

async function jsxTransformOptions() {
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" })
]
};
}
export {
jsxTransformOptions
};