mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
16 lines
260 B
JavaScript
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} />
|
|
</>
|
|
);
|
|
}
|