3bda6e66b6
* 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>
20 lines
475 B
JavaScript
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>
|
|
)
|
|
}
|
|
|
|
*/
|