Skip to content

Commit

Permalink
refactor LiveReload check
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Nov 2, 2023
1 parent 6ecafc8 commit f112cd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/remix-dev/vite/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -666,11 +666,11 @@ export const remixVitePlugin: RemixVitePlugin = (options = {}) => {
return;
}

let referencesLiveReload =
code.includes("@remix-run/react") && code.includes("LiveReload");
let hasLiveReloadHints =
code.includes("LiveReload") && code.includes("@remix-run/react");

// Don't transform files that don't need the proxy
if (!referencesLiveReload) {
if (!hasLiveReloadHints) {
return;
}

Expand Down

0 comments on commit f112cd9

Please sign in to comment.