next.js/test/integration/module-ids/pages/index.js
index.js20 lines413 B
import { foo } from '../module-with-long-name'
import { bar } from '../node_modules/external-module-with-long-name'
import dynamic from 'next/dynamic'

const DynamicCustomComponent = dynamic(
  () => import('../components/CustomComponent'),
  {
    loading: () => <p>Loading...</p>,
  }
)

export default function Index() {
  return (
    <div>
      <DynamicCustomComponent />
      {foo} {bar}
    </div>
  )
}
Quest for Codev2.0.0
/
SIGN IN