File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed 
packages/plugin-rsc/examples Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export default defineConfig({
5050      } , 
5151      build : { 
5252        rollupOptions : { 
53-           // @ts -ignore rolldown only  
53+           // @ts -ignore rolldown 
5454          platform : 'neutral' , 
5555        } , 
5656      } , 
@@ -62,7 +62,7 @@ export default defineConfig({
6262      } , 
6363      build : { 
6464        rollupOptions : { 
65-           // @ts -ignore rolldown only  
65+           // @ts -ignore rolldown 
6666          platform : 'neutral' , 
6767        } , 
6868      } , 
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import rsc from '@vitejs/plugin-rsc'
33import  react  from  '@vitejs/plugin-react' 
44import  {  defineConfig  }  from  'vite' 
55
6- export  default  defineConfig ( ( _env )   =>   ( { 
6+ export  default  defineConfig ( { 
77  clearScreen : false , 
88  build : { 
99    minify : false , 
@@ -31,10 +31,12 @@ export default defineConfig((_env) => ({
3131        rollupOptions : { 
3232          // ensure `default` export only in cloudflare entry output 
3333          preserveEntrySignatures : 'exports-only' , 
34+           // @ts -ignore rolldown 
3435          platform : 'neutral' , 
3536        } , 
3637      } , 
3738      optimizeDeps : { 
39+         // @ts -ignore rolldown 
3840        rollupOptions : { 
3941          platform : 'neutral' , 
4042        } , 
@@ -46,8 +48,11 @@ export default defineConfig((_env) => ({
4648        // build `ssr` inside `rsc` directory so that 
4749        // wrangler can deploy self-contained `dist/rsc` 
4850        outDir : './dist/rsc/ssr' , 
49-         platform : 'neutral' , 
51+         rollupOptions : { 
52+           // @ts -ignore rolldown 
53+           platform : 'neutral' , 
54+         } , 
5055      } , 
5156    } , 
5257  } , 
53- } ) ) 
58+ } ) 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments