From 97731fb30d4306548137621f991e9b366643d5d5 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sun, 19 Mar 2023 22:31:42 -0500 Subject: [PATCH] [Dev] Bundle: Force Modal and Avatar styles into the main bundle (#2828) Co-authored-by: Alexander Zinchuk --- src/components/common/UiLoader.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/common/UiLoader.tsx b/src/components/common/UiLoader.tsx index a1cb255b6..d225b17f6 100644 --- a/src/components/common/UiLoader.tsx +++ b/src/components/common/UiLoader.tsx @@ -26,6 +26,10 @@ import useEffectOnce from '../../hooks/useEffectOnce'; import styles from './UiLoader.module.scss'; +// Workaround for incorrect bundling by Webpack: force including in the main chunk +import '../ui/Modal.scss'; +import './Avatar.scss'; + import telegramLogoPath from '../../assets/telegram-logo.svg'; import reactionThumbsPath from '../../assets/reaction-thumbs.png'; import lockPreviewPath from '../../assets/lock.png';