Fix JS polyfills missing after the Vite switch (#34758)
This commit is contained in:
		@@ -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 <style> tag, with this `id`
 | 
			
		||||
    = vite_stylesheet_tag 'styles/entrypoints/inert.scss', media: 'all', id: 'inert-style'
 | 
			
		||||
    = vite_typescript_tag 'common.ts', crossorigin: 'anonymous'
 | 
			
		||||
 
 | 
			
		||||
@@ -13,6 +13,7 @@
 | 
			
		||||
 | 
			
		||||
    = vite_client_tag
 | 
			
		||||
    = vite_react_refresh_tag
 | 
			
		||||
    = vite_polyfill_tag crossorigin: 'anonymous'
 | 
			
		||||
    = theme_style_tags 'mastodon-light'
 | 
			
		||||
    = vite_preload_file_tag "mastodon/locales/#{I18n.locale}.json"
 | 
			
		||||
    = render_initial_state
 | 
			
		||||
 
 | 
			
		||||
@@ -7,6 +7,7 @@
 | 
			
		||||
    %meta{ content: 'width=device-width,initial-scale=1', name: 'viewport' }/
 | 
			
		||||
    = vite_client_tag
 | 
			
		||||
    = vite_react_refresh_tag
 | 
			
		||||
    = vite_polyfill_tag crossorigin: 'anonymous'
 | 
			
		||||
    = theme_style_tags Setting.default_settings['theme']
 | 
			
		||||
    = vite_typescript_tag 'error.ts', crossorigin: 'anonymous'
 | 
			
		||||
  %body.error
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user