-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: EmojiOneColor and NotoColorEmoji fonts are being included in our bundled app even though the Emoji Picker is not used #2116
Comments
Hey, @solestravis, we're currently working on dropping everything related/connected to |
@arnautov-anton Thanks for the quick response. We implemented a post build script that deletes these files in the meantime. |
### 🎯 Goal This PR bumps our CSS package to the latest RC version which separates `emoji-mart` related styling rules and `emoji-replacement` (styling rules for the `Chat.useImageFlagEmojisOnWindows` property) from the main `index.css` to reduce final bundle size for integrators who do not wish to use these stylesheets. Fixes: #2116 NOTE: This PR is part of the `v11` release, it should should be merged only after `v4` of `stream-chat-css` lands.
### 🎯 Goal This PR bumps our CSS package to the latest RC version which separates `emoji-mart` related styling rules and `emoji-replacement` (styling rules for the `Chat.useImageFlagEmojisOnWindows` property) from the main `index.css` to reduce final bundle size for integrators who do not wish to use these stylesheets. Fixes: #2116 NOTE: This PR is part of the `v11` release, it should should be merged only after `v4` of `stream-chat-css` lands.
@arnautov-anton |
Hey, @arianshirepublik, in an ongoing effort to make builds of our integrators lighter in regards to emojis we've released import "@stream-io/stream-chat-css/dist/v2/css/index.css"
// import this only if you're using built-in EmojiPicker
import "@stream-io/stream-chat-css/dist/v2/css/emoji-mart.css" For more information, please follow #1715. |
### 🎯 Goal This PR bumps our CSS package to the latest RC version which separates `emoji-mart` related styling rules and `emoji-replacement` (styling rules for the `Chat.useImageFlagEmojisOnWindows` property) from the main `index.css` to reduce final bundle size for integrators who do not wish to use these stylesheets. Fixes: #2116 NOTE: This PR is part of the `v11` release, it should should be merged only after `v4` of `stream-chat-css` lands.
Hi @solestravis |
This PR bumps our CSS package to the latest RC version which separates `emoji-mart` related styling rules and `emoji-replacement` (styling rules for the `Chat.useImageFlagEmojisOnWindows` property) from the main `index.css` to reduce final bundle size for integrators who do not wish to use these stylesheets. Fixes: #2116 NOTE: This PR is part of the `v11` release, it should should be merged only after `v4` of `stream-chat-css` lands.
This PR bumps our CSS package to the latest RC version which separates `emoji-mart` related styling rules and `emoji-replacement` (styling rules for the `Chat.useImageFlagEmojisOnWindows` property) from the main `index.css` to reduce final bundle size for integrators who do not wish to use these stylesheets. Fixes: #2116 NOTE: This PR is part of the `v11` release, it should should be merged only after `v4` of `stream-chat-css` lands.
This PR bumps our CSS package to the latest RC version which separates `emoji-mart` related styling rules and `emoji-replacement` (styling rules for the `Chat.useImageFlagEmojisOnWindows` property) from the main `index.css` to reduce final bundle size for integrators who do not wish to use these stylesheets. Fixes: #2116 NOTE: This PR is part of the `v11` release, it should should be merged only after `v4` of `stream-chat-css` lands.
This PR bumps our CSS package to the latest RC version which separates `emoji-mart` related styling rules and `emoji-replacement` (styling rules for the `Chat.useImageFlagEmojisOnWindows` property) from the main `index.css` to reduce final bundle size for integrators who do not wish to use these stylesheets. Fixes: #2116 NOTE: This PR is part of the `v11` release, it should should be merged only after `v4` of `stream-chat-css` lands.
BREAKING CHANGE: `EmojiPicker` & `EmojiIndex` signatures changed, `EmojiIndex` has been renamed to `emojiSearchIndex`, both `EmojiPicker` & `emojiSearchIndex` are now optional, see release guide for more information BREAKING CHANGE: `useImageFlagEmojisOnWindow` flag now requires extra style sheet import, see release guide for more information Fixes: #2116 Fixes: #2094
BREAKING CHANGE: `EmojiPicker` & `EmojiIndex` signatures changed, `EmojiIndex` has been renamed to `emojiSearchIndex`, both `EmojiPicker` & `emojiSearchIndex` are now optional, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information BREAKING CHANGE: `useImageFlagEmojisOnWindow` flag now requires extra style sheet import, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information Fixes: #2116 Fixes: #2094
Fixes: #2116 Fixes: #2094 BREAKING CHANGE: `EmojiPicker` & `EmojiIndex` signatures changed, `EmojiIndex` has been renamed to `emojiSearchIndex`, both `EmojiPicker` & `emojiSearchIndex` are now optional, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information BREAKING CHANGE: `useImageFlagEmojisOnWindow` flag now requires extra style sheet import, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information
## [11.0.0](v10.20.1...v11.0.0) (2023-11-27) ### ⚠ BREAKING CHANGES * **emoji-mart:** `EmojiPicker` & `EmojiIndex` signatures changed, `EmojiIndex` has been renamed to `emojiSearchIndex`, both `EmojiPicker` & `emojiSearchIndex` are now optional, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information * **emoji-mart:** `useImageFlagEmojisOnWindow` flag now requires extra style sheet import, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information * **emoji-mart:** `reactionOptions` signature has changed, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information * the first argument to `doSendMessageRequest` is now Channel instance instead of `Channel.cid` * apply the remark plugins `keepLineBreaksPlugin`, `htmlToTextPlugin` as a part of the default message text parsing, upgrade `unified` libraries ### Bug Fixes * **emoji-mart:** new reactions ([#1947](#1947)) ([14bef23](14bef23)), closes [#1935](#1935) [#1637](#1637) [#1437](#1437) [#2159](#2159) * **emoji-mart:** simplify EmojiPicker & emojiSearchIndex ([#2117](#2117)) ([a6e0a87](a6e0a87)), closes [#2116](#2116) [#2094](#2094) ### Features * apply keepLineBreaksPlugin & htmlToTextPlugin plugins to text rendering by default ([#2169](#2169)) ([e8047f2](e8047f2)), closes [#2170](#2170) [/github.com/GetStream/stream-chat-react/blob/f0bc7ba2532760cabb1db01e685a35bd3b0b64c5/src/components/Message/renderText/renderText.tsx#L158](https://github.com/GetStream//github.com/GetStream/stream-chat-react/blob/f0bc7ba2532760cabb1db01e685a35bd3b0b64c5/src/components/Message/renderText/renderText.tsx/issues/L158) * export MessageListNotifications and LinkPreviewList components and component props ([#2181](#2181)) ([a5a7e5a](a5a7e5a)) * require Channel instance as the first argument to doSendMessageRequest ([#2171](#2171)) ([2a06b88](2a06b88)) ### Chores * **deps:** bump stream-chat from 8.14.0 to 8.14.2 ([#2179](#2179)) ([4e6a59d](4e6a59d)) * **deps:** bump stream-chat from 8.14.2 to 8.14.3 ([#2185](#2185)) ([3dd8dab](3dd8dab))
🎉 This issue has been resolved in version 11.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
EmojiOneColor and NotoColorEmoji-flag fonts are being included in our bundle for a CRA app even though they're not being used, and this is causing our bandwidth usage to go up by 330%, which is costing our company a ton of money.
To Reproduce
Steps to reproduce the behavior:
stream-chat-react
yarn build
ornpm build
Expected behavior
These files should not be included if the Emoji Picker is not being used in the app.
Screenshots
Bandwidth usage after adding this library to our site:
Package version
├─ @stream-io/stream-chat-css@3.13.0
├─ stream-chat-react@10.10.1
└─ stream-chat@8.11.0
Desktop (please complete the following information):
Smartphone (please complete the following information):
Irrelevant
Additional context
N/A
The text was updated successfully, but these errors were encountered: