Files
bun.sh/packages/bun-framework-next/appInjector.js
2022-04-08 23:16:13 -07:00

16 lines
260 B
JavaScript

export function maybeInjectApp(expr) {
var app;
try {
const path = Bun.routesDir + "/_app";
app = Bun.resolveSync(path, Bun.cwd + "/");
} catch (exception) {
return undefined;
}
return (
<>
<import path={app} />
</>
);
}