Skip to content

Commit

Permalink
Fix failures
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jun 26, 2022
1 parent b8b734e commit ffec2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/plugin-utils.js
Expand Up @@ -59,7 +59,7 @@ export function getPluginOption(
}
});

if (plugin && Array.isArray(plugin)) {
if (Array.isArray(plugin) && plugin.length >= 2) {
return plugin[1][option];
}

Expand Down

0 comments on commit ffec2c6

Please sign in to comment.