Force the bundler to build the player as its own file
This commit is contained in:
@@ -63,6 +63,8 @@ export const ChatUserMessage: FC<ChatUserMessageProps> = ({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Find a solution to get rid of or replace "he" library since
|
||||||
|
// it's overly large for only use in this one place.
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setFormattedMessage(he.decode(body));
|
setFormattedMessage(he.decode(body));
|
||||||
}, [message]);
|
}, [message]);
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import {
|
|||||||
} from '../../stores/ClientConfigStore';
|
} from '../../stores/ClientConfigStore';
|
||||||
import { ClientConfig } from '../../../interfaces/client-config.model';
|
import { ClientConfig } from '../../../interfaces/client-config.model';
|
||||||
import { CustomPageContent } from '../CustomPageContent/CustomPageContent';
|
import { CustomPageContent } from '../CustomPageContent/CustomPageContent';
|
||||||
import { OwncastPlayer } from '../../video/OwncastPlayer/OwncastPlayer';
|
|
||||||
import styles from './Content.module.scss';
|
import styles from './Content.module.scss';
|
||||||
import { Sidebar } from '../Sidebar/Sidebar';
|
import { Sidebar } from '../Sidebar/Sidebar';
|
||||||
import { Footer } from '../Footer/Footer';
|
import { Footer } from '../Footer/Footer';
|
||||||
@@ -41,6 +41,8 @@ import { FollowModal } from '../../modals/FollowModal/FollowModal';
|
|||||||
|
|
||||||
const { Content: AntContent } = Layout;
|
const { Content: AntContent } = Layout;
|
||||||
|
|
||||||
|
// Lazy loaded components
|
||||||
|
|
||||||
const BrowserNotifyModal = dynamic(() =>
|
const BrowserNotifyModal = dynamic(() =>
|
||||||
import('../../modals/BrowserNotifyModal/BrowserNotifyModal').then(mod => mod.BrowserNotifyModal),
|
import('../../modals/BrowserNotifyModal/BrowserNotifyModal').then(mod => mod.BrowserNotifyModal),
|
||||||
);
|
);
|
||||||
@@ -49,6 +51,10 @@ const NotifyReminderPopup = dynamic(() =>
|
|||||||
import('../NotifyReminderPopup/NotifyReminderPopup').then(mod => mod.NotifyReminderPopup),
|
import('../NotifyReminderPopup/NotifyReminderPopup').then(mod => mod.NotifyReminderPopup),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const OwncastPlayer = dynamic(() =>
|
||||||
|
import('../../video/OwncastPlayer/OwncastPlayer').then(mod => mod.OwncastPlayer),
|
||||||
|
);
|
||||||
|
|
||||||
// We only need to load the chat container here if we're in mobile or narrow
|
// We only need to load the chat container here if we're in mobile or narrow
|
||||||
// windows, so lazy loading it makes sense.
|
// windows, so lazy loading it makes sense.
|
||||||
const ChatContainer = dynamic(() =>
|
const ChatContainer = dynamic(() =>
|
||||||
|
|||||||
Reference in New Issue
Block a user