Skip to content

Commit 885ad2a

Browse files
committed
chore: cleanup
1 parent dc4f69e commit 885ad2a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/plugin-rsc/src/plugin.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,7 @@ export default function vitePluginRsc(
563563
async hotUpdate(ctx) {
564564
if (isCSSRequest(ctx.file)) {
565565
if (this.environment.name === 'client') {
566-
// filter out `.css?direct` (injected by SSR) to avoid browser full reload
567-
// when changing non-self accepting css such as `module.css`.
568-
return ctx.modules.filter(
569-
(m) => !(m.id?.includes('?direct') && !m.isSelfAccepting),
570-
)
566+
return
571567
}
572568
}
573569

0 commit comments

Comments
 (0)