News for hackers. Stuff that matters.
Re:Webpack 4 Beta released by WorldMaker on Friday January 26, 2018 @12:32PM (#16241026)
Dynamic imports return a promise, so it's more like:

    import('./myComponent').then(myComponent => /* ... */)
Or:

    const myComponent = await import('./myComponent')
That quibble aside, it's also relatively powerful:

    const dynamicComponent = await import(/* webpackChunkName: "components" */ `./components/${componentType}/index`)

There are no comments on this comment yet.