File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/plugin-rsc/examples/browser-mode Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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
1010export 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 ) {
You can’t perform that action at this time.
0 commit comments