Skip to content

Commit

Permalink
fix: wrong parentheses in vitePluginSilenceDirectiveBuildWarning (#650
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hi-ogawa authored Sep 25, 2024
1 parent c1d620a commit 332536f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-server/src/plugin/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ export function vitePluginSilenceDirectiveBuildWarning(): Plugin {
}
// https://github.com/TanStack/query/pull/5161#issuecomment-1506683450
if (
(warning.code === "MODULE_LEVEL_DIRECTIVE" &&
warning.message.includes(`"use client"`)) ||
warning.message.includes(`"use server"`)
warning.code === "MODULE_LEVEL_DIRECTIVE" &&
(warning.message.includes(`use client`) ||
warning.message.includes(`use server`))
) {
return;
}
Expand Down

0 comments on commit 332536f

Please sign in to comment.