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:
parent
7c651d0a5d
commit
385a01d5ad
8 changed files with 19 additions and 15 deletions
|
@ -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
16
src/lib/legacy/index.ts
Normal 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';
|
Loading…
Add table
Add a link
Reference in a new issue