From 9c8e4c7c8f860d392431d0b482bae6b044bff760 Mon Sep 17 00:00:00 2001 From: Jasper van Merle Date: Tue, 20 Feb 2024 12:13:32 +0100 Subject: [PATCH] Fix typo in getParserByName comment --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index cd380c8..94887e0 100644 --- a/src/content.ts +++ b/src/content.ts @@ -43,7 +43,7 @@ async function getParserToUse(): Promise { } 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); }