Skip to content

Commit

Permalink
Update govuk-frontend .js file names
Browse files Browse the repository at this point in the history
In the govuk-frontend v5, the .js of UMD files has been changed to use
the "*.bundle.js" suffix. This means we have to update references to
those UMD files in the JS of the components.
  • Loading branch information
patrickpatrickpatrick authored and MartinJJones committed Jun 3, 2024
1 parent b8bc429 commit 9193ea7
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global nodeListForEach */
// = require ../vendor/polyfills/common.js
// This component relies on JavaScript from GOV.UK Frontend
// = require govuk/components/accordion/accordion.js
// = require govuk/components/accordion/accordion.bundle.js
window.GOVUK = window.GOVUK || {}
window.GOVUK.Modules = window.GOVUK.Modules || {}
window.GOVUK.Modules.GovukAccordion = window.GOVUKFrontend.Accordion;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This component relies on JavaScript from GOV.UK Frontend
// = require govuk/components/button/button.js
// = require govuk/components/button/button.bundle.js
window.GOVUK = window.GOVUK || {}
window.GOVUK.Modules = window.GOVUK.Modules || {}
window.GOVUK.Modules.GovukButton = window.GOVUKFrontend.Button
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This component relies on JavaScript from GOV.UK Frontend
// = require govuk/components/character-count/character-count.js
// = require govuk/components/character-count/character-count.bundle.js
window.GOVUK = window.GOVUK || {}
window.GOVUK.Modules = window.GOVUK.Modules || {}
window.GOVUK.Modules.GovukCharacterCount = window.GOVUKFrontend.CharacterCount
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// = require govuk/vendor/polyfills/Element/prototype/closest.js
// = require govuk/components/checkboxes/checkboxes.js
// = require govuk/components/checkboxes/checkboxes.bundle.js
window.GOVUK = window.GOVUK || {}
window.GOVUK.Modules = window.GOVUK.Modules || {}
window.GOVUK.Modules.GovukCheckboxes = window.GOVUKFrontend.Checkboxes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// = require govuk/components/details/details.js
// = require govuk/components/details/details.bundle.js
window.GOVUK = window.GOVUK || {}
window.GOVUK.Modules = window.GOVUK.Modules || {}
window.GOVUK.Modules.GovukDetails = window.GOVUKFrontend.Details;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This component relies on JavaScript from GOV.UK Frontend
// = require govuk/components/error-summary/error-summary.js
// = require govuk/components/error-summary/error-summary.bundle.js
window.GOVUK = window.GOVUK || {}
window.GOVUK.Modules = window.GOVUK.Modules || {}
window.GOVUK.Modules.GovukErrorSummary = window.GOVUKFrontend.ErrorSummary
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This component relies on JavaScript from GOV.UK Frontend
// = require govuk/components/header/header.js
// = require govuk/components/header/header.bundle.js
window.GOVUK = window.GOVUK || {}
window.GOVUK.Modules = window.GOVUK.Modules || {}
window.GOVUK.Modules.GovukHeader = window.GOVUKFrontend.Header
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This component relies on JavaScript from GOV.UK Frontend
// = require govuk/components/radios/radios.js
// = require govuk/components/radios/radios.bundle.js
window.GOVUK = window.GOVUK || {}
window.GOVUK.Modules = window.GOVUK.Modules || {}
window.GOVUK.Modules.GovukRadios = window.GOVUKFrontend.Radios
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This component relies on JavaScript from GOV.UK Frontend
// = require govuk/components/skip-link/skip-link.js
// = require govuk/components/skip-link/skip-link.bundle.js
window.GOVUK = window.GOVUK || {}
window.GOVUK.Modules = window.GOVUK.Modules || {}
window.GOVUK.Modules.GovukSkipLink = window.GOVUKFrontend.SkipLink
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This component relies on JavaScript from GOV.UK Frontend
// = require govuk/components/tabs/tabs.js
// = require govuk/components/tabs/tabs.bundle.js
window.GOVUK = window.GOVUK || {}
window.GOVUK.Modules = window.GOVUK.Modules || {}
window.GOVUK.Modules.GovukTabs = window.GOVUKFrontend.Tabs

0 comments on commit 9193ea7

Please sign in to comment.