-
-
Notifications
You must be signed in to change notification settings - Fork 570
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]: Tree shaking not working #6702
Comments
Hi! add the following settings to the config: |
any solutions for this? |
I suppose the ./utils is your ./index.ts right ? Here is my demo for you: https://github.com/JSerFeng/rspack-repro-treeshaking If you have any questions, feel free to ask, it would be better if you can upload your reproduce demo |
why comment |
You can uncomment this, the result is the same The point is set utils.js as sideEffect free |
System Info
MAC OS - M1
Details
I have files:
In
App.tsx
i used:Test2
withdayjs
, but when building, it still appears and is not tree-shakingrsbuild
, but I don't see any documentation about treeshaking. While going through rspack I found this, despite following it, it still doesn't work.In
rsbuild.config.ts
What configuration am I missing? Thanks for help
Reproduce link
No response
Reproduce Steps
The text was updated successfully, but these errors were encountered: