mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
replace require with Dynamic Imports
This commit is contained in:
parent
64125541fb
commit
b7d9dba32f
3 changed files with 5 additions and 8 deletions
|
@ -141,8 +141,7 @@ import 'css!./style';
|
|||
|
||||
options = options || {};
|
||||
|
||||
// TODO: remove require
|
||||
require(['text!./components/imageUploader/imageUploader.template.html'], template => {
|
||||
import('text!./imageUploader.template.html').then(({default: template}) => {
|
||||
|
||||
currentItemId = options.itemId;
|
||||
currentServerId = options.serverId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue