mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
42736c061a
* Add failing tests * Upgrade wd module * Pass dynamic import webpack ids to the client side * Pass through webpack ids to initalializer and only use those * Compile dynamic(import()) to dynamic(() => import()) * Default dynamicIds * Use forked hard-source-plugin * Possibly fix test * Make tests fail less intermittently * Temporarily disable hard-source in production * Make sure dynamic import chunks are unique * Disable hard-source * Log html if error is thrown * Fix test
17 lines
369 B
JavaScript
17 lines
369 B
JavaScript
/* eslint-disable */
|
|
import dynamic from 'next/dynamic'
|
|
|
|
const Hello = dynamic(import(/* webpackChunkName: 'hello1' */ '../../components/hello3'))
|
|
const Hello2 = dynamic(import(/* webpackChunkName: 'hello2' */ '../../components/hello4'))
|
|
|
|
export default () => {
|
|
return <div>
|
|
<Hello />
|
|
<Hello />
|
|
<Hello />
|
|
<Hello />
|
|
<Hello />
|
|
<Hello />
|
|
<Hello />
|
|
</div>
|
|
} |