Resolve circular dependencies in image diff frontend code
We have the following circular dependencies in app/assets/javascripts/image_diff/
:
.../helpers/index.js -> .../helpers/utils_helper.js -> .../image_badge.js -> .../helpers/index.js
.../helpers/utils_helper.js -> .../image_badge.js -> .../helpers/index.js -> .../helpers/utils_helper.js
.../image_badge.js -> .../helpers/index.js -> .../helpers/utils_helper.js -> .../image_badge.js
.../image_diff.js -> .../helpers/index.js -> .../helpers/utils_helper.js -> .../image_diff.js
.../replaced_image_diff.js -> .../helpers/index.js -> .../helpers/utils_helper.js -> .../replaced_image_diff.js
(https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/212248597)
Webpack's attempt to resolve them can lead to unintended side effects, so we should get rid of them.