module.exports = function inclusionFilter(packages) {
  return function(packageName) {
    if (packages.length === 0) { return true; }

    return packages.map(function(pkg) {
      return pkg.name;
    }).indexOf(packageName) > -1;
  };
};

module.exports = function inclusionFilter(packageNames) {
  return function(pkg) {
    if (packageNames.length === 0) { return true; }
    return packageNames.indexOf(pkg.name) > -1;
  };
};

Fix package name checking for svelte builds.
Fix package name checking for svelte builds.
