function createLoadScriptCode(cfg, polyfills) {
    const { MODULE, SCRIPT } = utils_1.fileTypes;
    if ((polyfills && polyfills.length > 0) ||
        [SCRIPT, MODULE].some(type => utils_1.hasFileOfType(cfg, type))) {
        return loadScriptFunction;
    }
    return '';
}
/**
 * Returns the loadScriptFunction if a script will be loaded for this config.
 */
Returns the loadScriptFunction if a script will be loaded for this config.
Returns the loadScriptFunction if a script will be loaded for this config .
function createLoadScriptCode(cfg, polyfills) {
    const { MODULE, SCRIPT } = utils_1.fileTypes;
    if ((polyfills && polyfills.length > 0) ||
        [SCRIPT, MODULE].some(type => utils_1.hasFileOfType(cfg, type))) {
        return loadScriptFunction;
    }
    return '';
}
function createLoadScriptCode ( cfg , polyfills ) { const { MODULE , SCRIPT } = utils_1 . fileTypes ; if ( ( polyfills && polyfills . length > 0 ) || [ SCRIPT , MODULE ] . some ( type => utils_1 . hasFileOfType ( cfg , type ) ) ) { return loadScriptFunction ; } return '' ; }
Returns the loadScriptFunction if a script will be loaded for this config.
Returns the loadScriptFunction if a script will be loaded for this config .