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.
addWatchFile
1 parent 2b7b90f commit 10987e0Copy full SHA for 10987e0
packages/plugin-rsc/src/plugin.ts
@@ -2100,6 +2100,7 @@ function vitePluginRscCss(
2100
if (parsed?.type === 'rsc') {
2101
assert(this.environment.name === 'rsc')
2102
const importer = parsed.id
2103
+ this.addWatchFile(importer)
2104
if (this.environment.mode === 'dev') {
2105
const result = collectCss(server.environments.rsc!, importer)
2106
const cssHrefs = result.hrefs.map((href) => href.slice(1))
@@ -2124,6 +2125,7 @@ function vitePluginRscCss(
2124
2125
}
2126
},
2127
hotUpdate(ctx) {
2128
+ if (1) return
2129
if (this.environment.name === 'rsc') {
2130
const { server } = manager
2131
const mods = collectModuleDependents(ctx.modules)
0 commit comments