mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
## What Determine if the client module is a CJS file and `default` export is imported, then we include the whole module instead of using webpack magic comments to only extract `default` export. ## Why Unlike ESM, The `default` export of CJS module is not just `.default` property, we need to include `__esModule` mark along with `default` export to make it function properly with React client module proxy Fixes #64518 Closes NEXT-3119
6 lines
115 B
JavaScript
6 lines
115 B
JavaScript
import CjsClientDefault from 'cjs-client-module'
|
|
|
|
export default function Page() {
|
|
return <CjsClientDefault />
|
|
}
|