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. |
benmccann
left a comment
There was a problem hiding this comment.
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: falseto test build for Karma, which has side effects.NOTE: need to merge #10504 and #10525 first