Add first business article and article layout

This commit is contained in:
2026-05-21 12:14:46 -05:00
parent 200e14e2e9
commit 4735704c6f
9617 changed files with 988627 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import { createRequire } from "node:module";
import path from "node:path";
import { pathToFileURL } from "node:url";
let cwdUrlStr;
const require2 = createRequire(import.meta.url);
async function importPlugin(p) {
try {
const importResult2 = await import(
/* @vite-ignore */
p
);
return importResult2.default;
} catch {
}
cwdUrlStr ??= pathToFileURL(path.join(process.cwd(), "package.json")).toString();
const resolved = pathToFileURL(require2.resolve(p, { paths: [cwdUrlStr] })).toString();
const importResult = await import(
/* @vite-ignore */
resolved
);
return importResult.default;
}
export {
importPlugin
};