code: function extractDependencyIds(options) {
    const dependencies = [];
  
    function extract(items) {
      // Invalid if not Array
      if (Array.isArray(items)) {
        items.reduce((dependencies, item) => {
          // Items can be Array with depedency as first param
          const dep = Array.isArray(item) ? item[0] : item;
  
          // Only gather string references, not functions/modules
          if ('string' == typeof dep) dependencies.push(dep);
          return dependencies;
        }, dependencies);
      }
    }
  
    if (options.plugins) extract(options.plugins);
    if (options.presets) extract(options.presets);
  
    return dependencies;
  }
docs: Extract dependency ids from 'options'
  @param {Object} options
  @returns {Array}