mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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]>
11 lines
342 B
TypeScript
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,
|
|
})
|
|
}
|