-
Notifications
You must be signed in to change notification settings - Fork 17
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
Publishing components upgrade #1647
Conversation
ee82769
to
68a4616
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good to me, except for two really minor things I've left comments for.
68a4616
to
b78a37d
Compare
I've also had a separate conversation with @MartinJJones @brucebolt, I'm gonna merge this with the commit upgrading Publishing-components left in, and close the dependabot PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍 . Just remember to remove the DO-NOT-MERGE
label from the PR title before merging (otherwise it ends up in the commit history).
This replaces Uglifier, as Terser supports ES6
This change is part of the process for upgrading apps to a new version of govuk_publishing_components that uses GOV.UK frontend V5.1 This is one of the steps detailed in the [Upgrading to GOV.UK Frontend v5 document](https://docs.google.com/document/d/1uwip7pzQwM7t5ghn9_8KrsWXLePSRUltFPZ5fYw6Ab8/edit). The purpose of this is to prevent browsers that don't support ES6 attempting to load ES6 Javascript from our components. We know browser that don't support ES6 as grade X browsers, and these browsers also don't support the `type = "module"` attribute in script tags. So we use this to prevent such code being loaded by ES6 Browsers. The 'all_components' require as been removed to avoid grade X browsers calling ES6 javascript
b78a37d
to
c154b45
Compare
Trello: https://trello.com/c/E0hw9QCZ/1241-upgrade-govukpublishingcomponents-for-transition
This application is owned by the publishing platform team. Please let us know in #govuk-publishing-platform when you raise any PRs.
Follow these steps if you are doing a Rails upgrade.