mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This ensures we don't include all chunks in `nft` traces un-necessarily as our webpack plugin already tracks which are needed per-entry. x-ref: [slack thread](https://vercel.slack.com/archives/C0591D8EN4C/p1702318184832319?thread_ts=1701815919.923639&cid=C0591D8EN4C) Closes NEXT-1847
18 lines
263 B
JavaScript
18 lines
263 B
JavaScript
import { fetchData } from '../lib/fetch-data'
|
|
|
|
import('../lib/my-component').then((mod) => {
|
|
console.log(mod.Button)
|
|
})
|
|
|
|
export default function Page() {
|
|
return 'index page'
|
|
}
|
|
|
|
export function getStaticProps() {
|
|
fetchData()
|
|
|
|
return {
|
|
props: {},
|
|
}
|
|
}
|