From d71ff9ee486fa08a8a577f888b1b6902265ff826 Mon Sep 17 00:00:00 2001 From: Alexandre Mouton-Brady Date: Mon, 3 Jan 2022 22:59:36 +0100 Subject: [PATCH] :art: Rename poorly named variable --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1f4f65a..67146d6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -306,12 +306,12 @@ export default function solidPlugin(options: Partial = {}): Plugin { const currentFileExtension = getExtension(id); const extensionsToWatch = [...(options.extensions || []), '.tsx', '.jsx']; - const allCustomExtensions = extensionsToWatch.map((extension) => + const allExtensions = extensionsToWatch.map((extension) => // An extension can be a string or a tuple [extension, options] typeof extension === 'string' ? extension : extension[0], ); - if (!allCustomExtensions.includes(currentFileExtension)) { + if (!allExtensions.includes(currentFileExtension)) { return null; }