Webpack successfully builds, but JavaScript doesn’t execute runtime

I have migrated Webpack v4 to v5, made changes relative to documentation and deprecation messages from CLI, and got successful build, though during the application testing I noticed that JavaScript …