fix: isPluginRequired returns the opposite result in v7.8.0 (#10992)

This commit is contained in:
Haoqun Jiang 2020-01-13 06:43:03 +08:00 committed by Nicolò Ribaudo
parent 2ccc451e96
commit f995f8e02c

View File

@ -32,7 +32,7 @@ import type { BuiltInsOption, ModuleOption } from "./types";
// TODO: Remove in Babel 8
export function isPluginRequired(targets: Targets, support: Targets) {
return !isRequired("fake-name", targets, {
return isRequired("fake-name", targets, {
compatData: { "fake-name": support },
});
}