-
Notifications
You must be signed in to change notification settings - Fork 17
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
[AC-1971]: Use git submodule for uikit-react to reduce the bundle size #180
Conversation
@@ -1,7 +1,7 @@ | |||
import styled from 'styled-components'; | |||
|
|||
import { getColorBasedOnSaturation } from '../colors'; | |||
import { ReactComponent as Icon } from '../icons/bot-profile-image-small.svg'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this format have to be changed?
- Verbose to use
- It causes a conflict with UIKit svg import type and throwing an error 🥲
e7c8bdc
to
c3677ef
Compare
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
ecmaFeatures: { jsx: true }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jsx: ECMScript 규격의 JSX 사용 여부
^ is this relevant to reducing bundle size?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Size reduce related? Not really but added in terms of better practice? \cc @bang9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before adding this was there an issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I directly linked UIKit and set up path aliases, ensuring that files are processed correctly in ESLint as well.
But I can't remember why ecmaFeatures: { jsx: true }
was enabled. 🙄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is terser the only change that reduced bundle size?
Yes :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Great job~
* feat: connect on ChatAiWidget component mounting * remove sdkInitParam * Add comment about localStorage custom event * Disconnect WS connection after 3min elapsed and reconnect on clicking widget button * Disconnect WS connection after 3min elapsed and reconnect on clicking widget button * SBComponent -> ProviderContainer * Set defaultValue to useWidgetLocalStorage to prevent null reference error * Create a separate WidgetWindowExternal * Remove unnecessary type assertion * Handle isWidgetOpen via Provider * Split mobile & desktop component
2d02b80
to
e6620e7
Compare
Key Changes:
@sendbird/uikit-react
dependency frompackage.json
.packages/uikit/
dir through a Git submodule. <- See.gitmodules
fileSo how much of the bundle size would be reduced?
AS-IS
TO-BE