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

Setup webpack and babel for webOS 1.2

This commit is contained in:
Dmitry Lyzo 2020-11-27 19:17:04 +03:00
parent c640e17ea8
commit 932d0e2af3
4 changed files with 21 additions and 5 deletions

View file

@ -1,3 +1,4 @@
import { importModule } from '@uupaa/dynamic-import-polyfill';
import './viewManager/viewContainer.css';
import Dashboard from '../scripts/clientUtils';
@ -17,7 +18,7 @@ import Dashboard from '../scripts/clientUtils';
controllerUrl = Dashboard.getPluginUrl(controllerUrl);
const apiUrl = ApiClient.getUrl('/web/' + controllerUrl);
return import(/* webpackIgnore: true */ apiUrl).then((ControllerFactory) => {
return importModule(apiUrl).then((ControllerFactory) => {
options.controllerFactory = ControllerFactory;
});
}