1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Move polyfill loading

This commit is contained in:
Bill Thornton 2024-08-14 12:51:54 -04:00
parent 7c651d0a5d
commit 385a01d5ad
8 changed files with 19 additions and 15 deletions

View file

@ -1,12 +1,6 @@
import 'core-js/stable'; // import legacy browser polyfills
import 'regenerator-runtime/runtime'; import 'lib/legacy';
import 'jquery';
import 'fast-text-encoding';
import 'intersection-observer';
import 'classlist.js';
import 'whatwg-fetch';
import 'abortcontroller-polyfill'; // requires fetch
import 'resize-observer-polyfill';
import './styles/site.scss'; import './styles/site.scss';
import React, { StrictMode } from 'react'; import React, { StrictMode } from 'react';
import { createRoot } from 'react-dom/client'; import { createRoot } from 'react-dom/client';
@ -31,12 +25,6 @@ import { pageClassOn, serverAddress } from './utils/dashboard';
import './scripts/screensavermanager'; import './scripts/screensavermanager';
import './scripts/serverNotifications'; import './scripts/serverNotifications';
import './components/playback/playerSelectionMenu'; import './components/playback/playerSelectionMenu';
import './legacy/domParserTextHtml';
import './legacy/focusPreventScroll';
import './legacy/htmlMediaElement';
import './legacy/keyboardEvent';
import './legacy/patchHeaders';
import './legacy/vendorStyles';
import { currentSettings } from './scripts/settings/userSettings'; import { currentSettings } from './scripts/settings/userSettings';
import taskButton from './scripts/taskbutton'; import taskButton from './scripts/taskbutton';
import RootApp from './RootApp.tsx'; import RootApp from './RootApp.tsx';

16
src/lib/legacy/index.ts Normal file
View file

@ -0,0 +1,16 @@
import 'core-js/stable';
import 'regenerator-runtime/runtime';
import 'jquery';
import 'fast-text-encoding';
import 'intersection-observer';
import 'classlist.js';
import 'whatwg-fetch';
import 'abortcontroller-polyfill'; // requires fetch
import 'resize-observer-polyfill';
import './domParserTextHtml';
import './focusPreventScroll';
import './htmlMediaElement';
import './keyboardEvent';
import './patchHeaders';
import './vendorStyles';