scripts/loader-src.js
/**
     * Begin loading scripts after merge userConfig and defaultConfig
     * @param {Object} userConfig child config
     * @param {Object} defaultConfig default config, merging with child config
     * */
Begin loading scripts after merge userConfig and defaultConfig
@param {Object} userConfig child config
@param {Object} defaultConfig default config, merging with child config
Begin loading scripts after merge userConfig and defaultConfig @param { Object } userConfig child config @param { Object } defaultConfig default config merging with child config
load(userConfig, defaultConfig) {
        if (defaultConfig) {
            this.cfg = this.jsonMergeRecursive(userConfig, defaultConfig);
        } else {
            this.cfg = userConfig;
        }
        this.scripts = {};
        for (let scriptname in this.cfg.modules) {
            if (!Object.prototype.hasOwnProperty.call(this.cfg.modules, scriptname)) {
                continue;
            }
            this.scripts[scriptname] = this.cfg.modules[scriptname].load;
            this.scripts[scriptname].isLoaded = this.stages.needed;
        }
        this.tryLoad();
    }
load ( userConfig , defaultConfig ) { if ( defaultConfig ) { this . cfg = this . jsonMergeRecursive ( userConfig , defaultConfig ) ; } else { this . cfg = userConfig ; } this . scripts = { } ; for ( let scriptname in this . cfg . modules ) { if ( ! Object . prototype . hasOwnProperty . call ( this . cfg . modules , scriptname ) ) { continue ; } this . scripts [ scriptname ] = this . cfg . modules [ scriptname ] . load ; this . scripts [ scriptname ] . isLoaded = this . stages . needed ; } this . tryLoad ( ) ; }
Begin loading scripts after merge userConfig and defaultConfig
 @param {Object} userConfig child config
 @param {Object} defaultConfig default config, merging with child config
Begin loading scripts after merge userConfig and defaultConfig @param { Object } userConfig child config @param { Object } defaultConfig default config merging with child config