rattail
Version:
A Vite+ oriented, AI Agent friendly front-end toolchain
17 lines (16 loc) • 558 B
JavaScript
import { t as __exportAll } from "./rolldown-runtime-Dfn8tqD8.mjs";
import { t as callOrReturn } from "./callOrReturn-MpTzoGlG.mjs";
import { loadConfig } from "unconfig";
//#region src/cli/config.ts
var config_exports = /* @__PURE__ */ __exportAll({ getConfig: () => getConfig });
async function getConfig() {
const { config } = await loadConfig({ sources: [{
files: "vite.config",
async rewrite(config) {
return (await callOrReturn(config))?.rattail;
}
}] });
return config ?? {};
}
//#endregion
export { getConfig as n, config_exports as t };