export async function getConfig(fileLocation) {
    try {
        const { config } = await import(fileLocation);
        return config;
    }
    catch (e) {
        if (['ERR_MODULE_NOT_FOUND', 'MODULE_NOT_FOUND'].includes(e.code)) {
            console.error('pf-docs.config.mjs not found, have you created it at the root of your package?');
            return;
        }
        console.error(e);
        return;
    }
}
