-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
feat: sideEffects false #10526
feat: sideEffects false #10526
Conversation
Isn't that the same build that would end up in cdn? If tests needs. |
@kurkle Yes. But here they marked as files with side effects. |
I committed the dist/chart.js to a test repository for a diff. This is what changes on the output with these additions: |
@kurkle Sorry. Fixed. I missed that we have one file with side effects in src. |
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.
Are there any TODOs we should add to remove the side effects? I'm curious if you think there are follow-ups we should do to this
It's not true.
It will not help.
I will try to make it |
I think it doesn't make sense because this code will be in a bundle in most cases anyway. |
@kurkle Could you please restart CI? It has strange error. |
Restarted, though it might be due to other merges. Maybe a rebase is needed. |
If you don't mind waiting a little bit, I'll send an alternative idea for review and we can decide which approach we might want to take. I'll do that in the next few hours |
I started on making animations optional here: #10574. After digging into the code, it looks like this won't necessarily conflict with that work, so we could probably merge this and then I can just build on top of it |
closes #10284
The problem was what Rollup was applying
sideEffects: false
to test build for Karma, which has side effects.NOTE: need to merge #10504 and #10525 first