We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd29faf commit 8986a29Copy full SHA for 8986a29
packages/react-router-dev/vite/build.ts
@@ -241,7 +241,7 @@ async function hasReactRouterRscPlugin({
241
}: {
242
root: string;
243
viteBuildOptions: ViteBuildOptions;
244
-}) {
+}): Promise<boolean> {
245
const vite = await import("vite");
246
const viteConfig = await vite.resolveConfig(
247
{
@@ -254,7 +254,7 @@ async function hasReactRouterRscPlugin({
254
"production", // default mode
255
"production", // default NODE_ENV
256
);
257
- return viteConfig.plugins?.find(
+ return viteConfig.plugins.some(
258
(plugin) => plugin?.name === "react-router/rsc",
259
260
}
0 commit comments