This repo reproduces and issue where webpack 4 doesn't create a separate chunk when the chunk is imported dynamically Use npm run build to test it Issue fixed: Set module to esnext in tsconfig