Skip to content

[7.4-stable] Add explicit strict mode in components index file #3337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2025

Conversation

alchemycms-bot
Copy link
Collaborator

Backport

This will backport the following commits from main to 7.4-stable:

Questions ?

Please refer to the Backport tool documentation

Copy link

codecov bot commented Jul 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.48%. Comparing base (8ea7b0e) to head (2e6b09e).
Report is 2 commits behind head on 7.4-stable.

Additional details and impacted files
@@             Coverage Diff             @@
##           7.4-stable    #3337   +/-   ##
===========================================
  Coverage       96.48%   96.48%           
===========================================
  Files             239      239           
  Lines            6465     6465           
===========================================
  Hits             6238     6238           
  Misses            227      227           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tvdeyen tvdeyen force-pushed the backport/7.4-stable/pr-3331 branch from 3475bf9 to e412444 Compare July 22, 2025 06:50
If this file gets compiled with terser via sprockets
it complain about top-level await is not available.

This code will always ever run in context of a module,
which implicitely implies strict mode, but Terser need
this hint anyway.

Refs ahorek/terser-ruby#62

Closes #3245

(cherry picked from commit 1c19cd4)
@tvdeyen tvdeyen force-pushed the backport/7.4-stable/pr-3331 branch from e412444 to 2e6b09e Compare July 22, 2025 08:13
@tvdeyen tvdeyen merged commit a221c0a into 7.4-stable Jul 22, 2025
53 checks passed
@tvdeyen tvdeyen deleted the backport/7.4-stable/pr-3331 branch July 22, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants