The code above this address has been around for a long time. Can you update to the latest webpack4?
Are you using Cesium with the latest webpack in your project? If so, it’d be a big help if you can contribute to updating that page. If there any code changes required you can submit a pull request to the repo here:
https://github.com/AnalyticalGraphicsInc/cesium-webpack-example
And that’ll make it easier for us to update.
I am using webpack 4.x in my Cesium project and followed this same setup without any issues. Is there a particular problem you are running into or a part where you got stuck?