Skip to content

Commit

Permalink
🎨 Rename poorly named variable
Browse files Browse the repository at this point in the history
  • Loading branch information
amoutonbrady committed Jan 3, 2022
1 parent 34095c3 commit d71ff9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,12 @@ export default function solidPlugin(options: Partial<Options> = {}): 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;
}

Expand Down

0 comments on commit d71ff9e

Please sign in to comment.