From aad9034179167d2818a3608d5bd83befea8ffb4d Mon Sep 17 00:00:00 2001 From: AshGDS <8880610+AshGDS@users.noreply.github.com> Date: Fri, 19 Jul 2024 15:06:48 +0100 Subject: [PATCH 1/2] Use type=module for application.js --- app/views/layouts/application.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index ce719d5a..f5a97a8d 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -42,7 +42,7 @@ <%= yield :body %> - <%= javascript_include_tag 'application' %> + <%= javascript_include_tag 'application', type: "module" %> <%= javascript_include_tag "es6-components", type: "module" %> From ae0d4546813a25b0ade563bb408f9613c95a1fcf Mon Sep 17 00:00:00 2001 From: AshGDS <8880610+AshGDS@users.noreply.github.com> Date: Thu, 15 Aug 2024 17:03:46 +0100 Subject: [PATCH 2/2] Bump to latest components gem --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 0259df0d..3a706e7b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -153,7 +153,7 @@ GEM govuk_personalisation (0.16.0) plek (>= 1.9.0) rails (>= 6, < 8) - govuk_publishing_components (41.1.1) + govuk_publishing_components (42.0.0) govuk_app_config govuk_personalisation (>= 0.7.0) kramdown