Skip to content

Commit

Permalink
Compare against plugin name, not whole json
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed May 17, 2023
1 parent cd8db44 commit c639ec1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/utils/get-experimental-parser-plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ export const hasPlugin = (

if (isParserPluginWithOptions) {
try {
plugin = JSON.parse(
pluginNameOrJson,
) as ParserPluginWithOptions;
plugin = JSON.parse(pluginNameOrJson)[0];
} catch (e) {
throw Error(
'Invalid JSON in importOrderParserPlugins: ' +
Expand Down

0 comments on commit c639ec1

Please sign in to comment.