src/componentDefinitions.js
function getDependencies(component, Prism) {
    // Cast require to an Array
    const deps = [].concat(component.require || []);

    if (Prism) {
        return deps.filter(
            dep =>
                // Remove dependencies that are already loaded
                !Prism.languages[dep]
        );
    }
    return deps;
}
function getDependencies(component, Prism) {
    // Cast require to an Array
    const deps = [].concat(component.require || []);

    if (Prism) {
        return deps.filter(
            dep =>
                // Remove dependencies that are already loaded
                !Prism.languages[dep]
        );
    }
    return deps;
}
function getDependencies ( component , Prism ) { // Cast require to an Array const deps = [ ] . concat ( component . require || [ ] ) ; if ( Prism ) { return deps . filter ( dep => // Remove dependencies that are already loaded ! Prism . languages [ dep ] ) ; } return deps ; }
List the dependencies for a component. If Prism is provided, only returns
dependencies that are not present in `Prism.languages`
@param {Object} component Component definition
@param {Prism} Prism instance
@return {Array<String>}
List the dependencies for a component . If Prism is provided only returns dependencies that are not present in Prism . languages