Skip to content

Commit

Permalink
Merge pull request #1819 from alphagov/type-module-changes
Browse files Browse the repository at this point in the history
Use type=module for application.js
  • Loading branch information
AshGDS authored Aug 15, 2024
2 parents e11ea1d + ae0d454 commit 37e1d1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</head>
<body class="govuk-template__body">
<%= yield :body %>
<%= javascript_include_tag 'application' %>
<%= javascript_include_tag 'application', type: "module" %>
<%= javascript_include_tag "es6-components", type: "module" %>
</body>
</html>

0 comments on commit 37e1d1e

Please sign in to comment.