Skip to content

Commit 6debfd5

Browse files
authored
vite: fix "could not fast refresh" false alarm (#8580)
1 parent 6ce2250 commit 6debfd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/remix-dev/vite/plugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,8 @@ function addRefreshWrapper(
14681468
code: string,
14691469
id: string
14701470
): string {
1471-
let isRoute = getRoute(pluginConfig, id);
1471+
let isRoute =
1472+
id.endsWith(CLIENT_ROUTE_QUERY_STRING) || getRoute(pluginConfig, id);
14721473
let acceptExports = isRoute
14731474
? [
14741475
"clientAction",

0 commit comments

Comments
 (0)