How to generate dynamic import chunk name in webpack
I am dynamically calling an import statement in my typescript code, based on that webpack will create chunks like below: you can see Webpack is automatically generating the file name as 1,2,3 respectively, the name is not a friendly name I have tried a way to provide the chunk name through comment, but it's generating modulename1.bundle.js , modulename2.bundle.js bootStrapApps(config) { config.apps.forEach(element => { registerApplication( // Name of our single-spa application element.name, // Our loading function () => import(/* webpackChunkName: "modulename"*/ "../../" + config.rootfolder +