Loadable-components: is it possible to name the bundle?

Created on 11 Dec 2017  路  1Comment  路  Source: gregberge/loadable-components

i never saw it works but i saw implementation of dynamic import using this syntax to give meaningful names to the bundles (unlike 1.lib.bundle. ):

for example:
import('./pages/About' /* webpackChunkName = 'about' */)

i've tried it using loadable-component with no success...
loadable(() => import('./pages/About' /* webpackChunkName = 'about' */))

please advise if it is supported or planned

best regards and thanks for this useful library

Most helpful comment

Yeah you can safely use webpack chunk names:

import loadable from 'loadable-components'

const About = loadable(import(/* webpackChunkName: "about" */ './pages/About'))

>All comments

Yeah you can safely use webpack chunk names:

import loadable from 'loadable-components'

const About = loadable(import(/* webpackChunkName: "about" */ './pages/About'))
Was this page helpful?
0 / 5 - 0 ratings