Closed

Description
This issue is automatically created based on existing pull request: #27622: Prevent leaking of variables to global scope
Description (*)
This PR adjusts minification file resolver for RequreJS that is generated to prevent leaking of variables it uses to global scope.
Preconditions (*)
Steps to reproduce (*)
- Enable JS minification https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/themes/js-bundling.html
Expected Result (*)
- JavaScript minification still works properly and correct
.min.js
files are requested. - There is no
ctx
,origNameToUrl
andbaseUrl
variables underwindow
leaked.
Actual result (*)
- [Screenshots, logs or description]
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentA defect with this priority could have functionality issues which are not to expectations.The issue has been reproduced on latest 2.4-develop branchMajor restrictions or short-term circumventions are required until a fix is available.Has been reviewed and prioritized during Triage with Product Managers