Skip to content

Commit

Permalink
Remove api.targets existence check
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 27, 2020
1 parent 7b61c1f commit 35b4bff
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -14,7 +14,7 @@ import { isRequired } from "@babel/helper-compilation-targets";
export default declare((api, options) => {
api.assertVersion(7);

if (!api.targets || isRequired("proposal-class-properties", api.targets())) {
if (isRequired("proposal-class-properties", api.targets())) {
return createClassFeaturePlugin({
name: "proposal-private-methods",

Expand Down

0 comments on commit 35b4bff

Please sign in to comment.