File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11'use client'
22
3- import * as React from 'react'
3+ import React from 'react'
44
55export function ClientCounter ( ) {
66 const [ count , setCount ] = React . useState ( 0 )
Original file line number Diff line number Diff line change 11import * as ReactClient from '@vitejs/plugin-rsc/ssr' // RSC API
2- import * as React from 'react'
2+ import React from 'react'
33import type { ReactFormState } from 'react-dom/client'
44import * as ReactDOMServer from 'react-dom/server.edge'
55import { injectRSCPayload } from 'rsc-html-stream/server'
Original file line number Diff line number Diff line change @@ -1958,7 +1958,7 @@ function generateResourcesCode(depsCode: string) {
19581958 }
19591959
19601960 return `
1961- import * as __vite_rsc_react__ from "react";
1961+ import __vite_rsc_react__ from "react";
19621962 export const Resources = (${ ResourcesFn . toString ( ) } )(__vite_rsc_react__, ${ depsCode } );
19631963 `
19641964}
@@ -1983,7 +1983,7 @@ export async function transformRscCssExport(options: {
19831983 } )
19841984 if ( result . output . hasChanged ( ) ) {
19851985 if ( ! options . code . includes ( '__vite_rsc_react__' ) ) {
1986- result . output . prepend ( `import * as __vite_rsc_react__ from "react";` )
1986+ result . output . prepend ( `import __vite_rsc_react__ from "react";` )
19871987 }
19881988 result . output . append ( `
19891989function __vite_rsc_wrap_css__(value, name) {
You can’t perform that action at this time.
0 commit comments