Skip to content
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

Switch from Uglifier to Terser #1759

Merged
merged 1 commit into from
Aug 1, 2024
Merged

Switch from Uglifier to Terser #1759

merged 1 commit into from
Aug 1, 2024

Conversation

andysellick
Copy link
Contributor

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What

Use Terser instead of Uglifier to compile JavaScript.

Why

This change is preparation for upgrading to V5 of govuk-frontend in the govuk-publishing-components gem.

govuk-frontend v5 now targets browsers that support ES6. This means that the UMD modules used in govuk_publsihing_components from govuk-frontend use features of ES6 and so it means that Uglifier can't be used anymore because it only supports ES5.

- needed to be compatible with govuk-frontend v5, included in release 40.0.0 of govuk_publishing_components
@mtaylorgds mtaylorgds merged commit 5d8ef78 into main Aug 1, 2024
11 checks passed
@mtaylorgds mtaylorgds deleted the switch-to-terser branch August 1, 2024 10:18
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