Skip to content

Commit 07b3fbe

Browse files
committed
chore: comment
1 parent 2799acb commit 07b3fbe

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/plugin-rsc/examples/browser-mode/vite.config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import {
55
vitePluginUseServer,
66
vitePluginDefineEncryptionKey,
77
} from '@vitejs/plugin-rsc/plugin'
8-
import inspect from 'vite-plugin-inspect'
8+
// import inspect from 'vite-plugin-inspect'
99

1010
export default defineConfig({
1111
plugins: [
12-
inspect(),
12+
// inspect(),
1313
vitePluginRscMinimal(),
1414
vitePluginUseClient({
1515
environment: {
@@ -44,6 +44,10 @@ export default defineConfig({
4444
next()
4545
})
4646
},
47+
// for "react_client" hmr, it requires:
48+
// - enable fast-refresh transform on `react_client` environment
49+
// - currently `@vitejs/plugin-react` doesn't support it
50+
// - implement and enable module runner hmr
4751
hotUpdate(ctx) {
4852
if (this.environment.name === 'react_client') {
4953
if (ctx.modules.length > 0) {

0 commit comments

Comments
 (0)