astro-ghostcms/.pnpm-store/v3/files/b4/84818c9e7ecca8eaf048a455234...

22 lines
602 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadConfig = void 0;
function loadConfig(console, dir, configFile) {
let configPath;
try {
configPath = require.resolve(configFile ?? './volar.config.js', { paths: [dir] });
}
catch { }
try {
if (configPath) {
const config = require(configPath);
delete require.cache[configPath];
return config;
}
}
catch (err) {
console.warn(String(err));
}
}
exports.loadConfig = loadConfig;
//# sourceMappingURL=serverConfig.js.map