Skip to content

Commit cf33c29

Browse files
committed
chore(rsc): test vitejs/vite#20391
1 parent 4005dbe commit cf33c29

File tree

3 files changed

+132
-126
lines changed

3 files changed

+132
-126
lines changed

packages/plugin-rsc/src/plugin.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -391,18 +391,18 @@ export default function vitePluginRsc(
391391
// Server files can be included in client module graph, for example,
392392
// when `addWatchFile` is used to track js files as style dependency (e.g. tailwind)
393393
// In this case, reload all importers (for css hmr), and return empty modules to avoid full-reload.
394-
const env = ctx.server.environments.rsc!
395-
const mod = env.moduleGraph.getModuleById(ctx.file)
396-
if (mod) {
397-
for (const clientMod of ctx.modules) {
398-
for (const importer of clientMod.importers) {
399-
if (importer.id && isCSSRequest(importer.id)) {
400-
await this.environment.reloadModule(importer)
401-
}
402-
}
403-
}
404-
return []
405-
}
394+
// const env = ctx.server.environments.rsc!
395+
// const mod = env.moduleGraph.getModuleById(ctx.file)
396+
// if (mod) {
397+
// for (const clientMod of ctx.modules) {
398+
// for (const importer of clientMod.importers) {
399+
// if (importer.id && isCSSRequest(importer.id)) {
400+
// await this.environment.reloadModule(importer)
401+
// }
402+
// }
403+
// }
404+
// return []
405+
// }
406406
}
407407
}
408408
},

0 commit comments

Comments
 (0)