Skip to content

fix: Enable rslib sideEffects on react-spring #3321

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

Merged
merged 1 commit into from
Feb 18, 2025
Merged

Conversation

Ldoppea
Copy link
Member

@Ldoppea Ldoppea commented Feb 18, 2025

Since the rslib migration, the mui-bottom-sheet component would not work anymore due to .willAdvance is not a function error

This is due to library's side effects that are erased by the tree shaking mechanism

To prevent that we change the rsbuild configuration to handle those side effects

More info: pmndrs/react-spring#1078

Since the rslib migration, the mui-bottom-sheet component would not
work anymore due to `.willAdvance is not a function` error

This is due to library's side effects that are erased by the tree
shaking mechanism

To prevent that we change the rsbuild configuration to handle those
side effects

More info: pmndrs/react-spring#1078
Copy link

bundlemon bot commented Feb 18, 2025

BundleMon

Files updated (3)
Status Path Size Limits
static/js/cozy.(hash).js
793.76KB (+170B +0.02%) -
static/js/(chunkId).(hash).js
1.19MB (+38B 0%) -
public/static/js/(chunkId).(hash).js
996.77KB (+22B 0%) -
Unchanged files (18)
Status Path Size Limits
public/static/js/cozy.(hash).js
660.33KB -
(hash).js
337.62KB -
public/(hash).js
337.62KB -
services/qualificationMigration.js
271.92KB -
services/dacc.js
254.86KB -
static/js/main.(hash).js
125.62KB -
public/static/js/public.(hash).js
97.6KB -
public/static/js/lib-react.(hash).js
39.37KB -
static/js/lib-react.(hash).js
39.37KB -
static/css/cozy.(hash).css
32.79KB -
public/static/css/cozy.(hash).css
32.58KB -
public/static/js/lib-router.(hash).js
22.05KB -
static/js/lib-router.(hash).js
22.05KB -
static/css/main.(hash).css
16.77KB -
public/static/css/public.(hash).css
6.28KB -
manifest.webapp
1.91KB -
index.html
685B -
assets/manifest.json
185B -

Total files change +232B 0%

Groups updated (1)
Status Path Size Limits
**/*.js
6.84MB (+305B 0%) -
Unchanged groups (2)
Status Path Size Limits
**/*.{png,svg,ico}
2.19MB -
**/*.css
127.44KB -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@Ldoppea Ldoppea merged commit 59c6ecd into master Feb 18, 2025
4 checks passed
@Ldoppea Ldoppea deleted the fix/react-spring branch February 18, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants