This sample is for webpack/webpack#6537 The issue is resolved by using optimization.runtimeChunk: "single".