Skip to content

Commit

Permalink
Fix CI error
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Mar 3, 2020
1 parent 810dfa5 commit 8a47461
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/babel-preset-env/src/normalize-options.js
Expand Up @@ -5,6 +5,7 @@ import invariant from "invariant";
import { coerce, SemVer } from "semver";
import corejs2Polyfills from "@babel/compat-data/corejs2-built-ins";
import pluginsList from "@babel/compat-data/plugins";
import availablePlugins from "./available-plugins";
import moduleTransformations from "./module-transformations";
import { TopLevelOptions, ModulesOption, UseBuiltInsOption } from "./options";
import { defaultWebIncludes } from "./polyfills/corejs2/get-platform-specific-default";
Expand All @@ -31,7 +32,9 @@ const validateTopLevelOptions = (options: Options) => {
}
};

const allPluginsList = Object.keys(pluginsList);
const allPluginsList = Object.keys(pluginsList).filter(
plugin => !!availablePlugins[plugin],
);

// NOTE: Since module plugins are handled seperatly compared to other plugins (via the "modules" option) it
// should only be possible to exclude and not include module plugins, otherwise it's possible that preset-env
Expand Down

0 comments on commit 8a47461

Please sign in to comment.