Fix duplicated JS modules in "app" and "vendor" bundles

JS modules are unnecessarily duplicated in "app" and "vendor" bundles. See enclosed screenshot showing the output of yarn build:analyze after running yarn build:

Screenshot_from_2023-02-14_12-33-19