function _safeLoadDependency(name) {
    try {
        window[name.split('/').pop()] = require(`../src/charts/${name}`);
    } catch (e) {
        errors.push({
            error: e,
            filePath: name
        });
    }
}
Safe load dependency. If there is an error, it loads the error to be displayed in the notification bar
@param  {file name} name     name of fiel at src/charts. probably could refactor to take full path