Files
Will Binns-SmithandGitHub f79440260c Turbopack: Allow client components to be imported in app routes (#64520)
Resolves #64412

This adds a client transition to the app route `ModuleAssetContext` and
the corresponding transforms so that client components can be safely
imported and referenced (as their proxies) in app routes.

Test Plan: Added an integration test


Closes PACK-2964
2024-04-15 14:18:56 -07:00

6 lines
88 B
TypeScript

'use client'
export function ClientComponent() {
return <div>ClientComponent</div>
}