Fix duplicate module init when using Vite in EE and JH editions
What does this MR do and why?
This fixes a bug in Vite frontend integration when CE entrypoints were still loading while the EE and JH entrypoints for the same path were present.
Example paths:
app/assets/javascripts/projects/issues/show/index.js
ee/app/assets/javascripts/projects/issues/show/index.js
Only the second one should be loaded.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Enable EE (Enterprise Edition) features, requires license
- Open issue page
- Ensure
CreateMergeRequestDropdown
is initialized only once (put adebugger
statement in the constructor)