rsnext/test/integration/react-streaming-and-server-components/app/components/client-exports-all.js
Jiachi Liu 3bda6e66b6
Use swc parse for flight server and client loaders (#33713)
* Add `parse` method for next-swc
* Use shared next-swc to parse rsc components AST
* Remove the invalid case of parsing `ExportAllDecalaration` (we didn't support it well before, so I deleted. need to support later)


Co-authored-by: Donny/강동윤 <29931815+kdy1@users.noreply.github.com>
Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2022-01-27 15:48:09 +00:00

20 lines
475 B
JavaScript

export * from './client-exports'
// TODO: add exports all test case in pages
/**
import * as all from '../components/client-exports-all'
import * as allClient from '../components/client-exports-all.client'
export default function Page() {
const { a, b, c, d, e } = all
const { a: ac, b: bc, c: cc, d: dc, e: ec } = allClient
return (
<div>
<div id='server'>{a}{b}{c}{d}{e[0]}</div>
<div id='client'>{ac}{bc}{cc}{dc}{ec[0]}</div>
</div>
)
}
*/