Refactor routing in App component to enhance navigation and improve error handling by integrating dynamic routes and updating the NotFound route.
This commit is contained in:
14
node_modules/astro/dist/jsx/transform-options.js
generated
vendored
Normal file
14
node_modules/astro/dist/jsx/transform-options.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
};
|
Reference in New Issue
Block a user