0c4362e440
* Always check with the fs when gettings chunks. * Add a new set of test cases for dynamic imports in dev. * Add dynamic import test cases for production. * Add availableChunks support for static exports.
11 lines
249 B
JavaScript
11 lines
249 B
JavaScript
import dynamic from 'next/dynamic'
|
|
import Welcome from '../../components/welcome'
|
|
|
|
const Welcome2 = dynamic(import('../../components/welcome'))
|
|
|
|
export default () => (
|
|
<div>
|
|
<Welcome name='normal' />
|
|
<Welcome2 name='dynamic' />
|
|
</div>
|
|
)
|