Skip to content

Commit

Permalink
Fix typo in getParserByName comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jmerle committed Feb 20, 2024
1 parent 5458859 commit 9c8e4c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function getParserToUse(): Promise<Parser> {
}

function getParserByName(name: string): Parser {
// Vite prefixes classes with an underscore when they have one or more static members
// ESBuild prefixes classes with an underscore when they have one or more static members
const prefixedName = '_' + name;
return parsers.find(parser => parser.constructor.name === name || parser.constructor.name === prefixedName);
}
Expand Down

0 comments on commit 9c8e4c7

Please sign in to comment.