Skip to content

Upgrade sprockets to 4.1.1

Vitaly Slobodin requested to merge vs/upgrade-sprockets into master

What does this MR do and why?

This MR upgrades sprockets gem to version 4.1.1 because the current version has known issues with Ruby 3. The most notable change is the manifest.js file and the migration to it from precompile attribute. See the upgrade guide for more information.

This upgrade affects our process of adding page bundles and assets that needs to be precompiled from adding them to application.rb to manifest.js. For EE and JH there is no corresponding manifest.js file as this is not supported by sprockets. Instead for EE and JH we use manifest-like files ee.js and jh.js located under the ee/app/assets/config/ directory (for JH the directory is jh/app/assets/config/)

Closes #373997

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vitaly Slobodin

Merge request reports