Skip to content

Fix apparent typo in Vite plugin#16

Closed
joshwilsonvu wants to merge 1 commit intoTanStack:mainfrom
joshwilsonvu:patch-1
Closed

Fix apparent typo in Vite plugin#16
joshwilsonvu wants to merge 1 commit intoTanStack:mainfrom
joshwilsonvu:patch-1

Conversation

@joshwilsonvu
Copy link
Copy Markdown

Was just browsing the code and noticed a probable misplaced parenthesis:

  if (
    code.includes(
-     'fetch$(' || code.includes('split$(')
+     'fetch$('
    ) ||
+   code.includes('split$(') ||
    code.includes('server$(')
  ) {

Fixed and switched to a regex to avoid multiple passes.

@joshwilsonvu
Copy link
Copy Markdown
Author

Actually, this duplicates #15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant