lib/config/config-file.js
function loadJSConfigFile(filePath) {
    debug(`Loading JS config file: ${filePath}`);
    try {
        return importFresh(filePath);
    } catch (e) {
        debug(`Error reading JavaScript file: ${filePath}`);
        e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`;
        throw e;
    }
}
function loadJSConfigFile(filePath) {
    debug(`Loading JS config file: ${filePath}`);
    try {
        return importFresh(filePath);
    } catch (e) {
        debug(`Error reading JavaScript file: ${filePath}`);
        e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`;
        throw e;
    }
}
function loadJSConfigFile ( filePath ) { debug ( ` ${ filePath } ` ) ; try { return importFresh ( filePath ) ; } catch ( e ) { debug ( ` ${ filePath } ` ) ; e . message = ` ${ filePath } \n ${ e . message } ` ; throw e ; } }
Loads a JavaScript configuration from a file.
@param {string} filePath The filename to load.
@returns {Object} The configuration object from the file.
@throws {Error} If the file cannot be read.
@private
Loads a JavaScript configuration from a file .