From 83dd09d4dc19311cfed6fdde34ea79686cad0310 Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Wed, 21 May 2025 22:11:01 +0200 Subject: [PATCH] Fix JS polyfills missing after the Vite switch (#34758) --- app/views/layouts/application.html.haml | 1 + app/views/layouts/embedded.html.haml | 1 + app/views/layouts/error.html.haml | 1 + lib/vite_ruby/sri_extensions.rb | 6 ++++ package.json | 1 + vite.config.mts | 5 +++ yarn.lock | 48 ++++++++++++++++++++++--- 7 files changed, 59 insertions(+), 4 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 3dae993a9a..fc2c18e57e 100755 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -28,6 +28,7 @@ = theme_style_tags current_theme = vite_client_tag = vite_react_refresh_tag + = vite_polyfill_tag crossorigin: 'anonymous' -# Needed for the wicg-inert polyfill. It needs to be on it's own