Files
9a3c9ed29f Turbopack: Allow client components from foreign code in app routes (#64751)
This extends #64520 to cover cases where client components originate
from node_modules (foreign code).

Test Plan: Extended the integration test to cover this

Closes #64412
Fixes PACK-3014

---------

Co-authored-by: OJ Kwon <[email protected]>
2024-04-26 15:26:33 -07:00

11 lines
342 B
TypeScript

import { NextResponse } from 'next/server'
import { ClientComponent } from '../../ClientComponent'
import { MyModuleClientComponent } from 'my-module/MyModuleClientComponent'
export function GET() {
return NextResponse.json({
clientComponent: typeof ClientComponent,
myModuleClientComponent: typeof MyModuleClientComponent,
})
}