mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
fix typo in dynamic import with multiple modules (#2344)
This commit is contained in:
parent
8d0fdc09f7
commit
3a9c419160
|
@ -664,7 +664,7 @@ import dynamic from 'next/dynamic'
|
||||||
|
|
||||||
const HelloBundle = dynamic({
|
const HelloBundle = dynamic({
|
||||||
modules: (props) => {
|
modules: (props) => {
|
||||||
const components {
|
const components = {
|
||||||
Hello1: import('../components/hello1'),
|
Hello1: import('../components/hello1'),
|
||||||
Hello2: import('../components/hello2')
|
Hello2: import('../components/hello2')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue