mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### Why? In preparation for moving all turbopack crates Also makes them easier to work with in general. Closes PACK-3164
8 lines
293 B
JavaScript
8 lines
293 B
JavaScript
import dynamic from 'next/dynamic'
|
|
|
|
const DynamicComponent = dynamic(() => import(`../components/hello`))
|
|
|
|
const componentRoot = '@/some-components'
|
|
const Component1 = dynamic(() => import(`${componentRoot}/component1`))
|
|
const Component2 = dynamic(() => import(`${componentRoot}/component2`))
|