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
Update Rollup #11427
Update Rollup #11427
Conversation
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 agree that the "use-strict" duplication is fine. 👍
It's not great to inflate bundle size because of it though. I'll land it only if I verify the ES modules PR gets rid of it when laid on top. |
Ah, that was where I was at. That the ES Module update would collapse the closures around the CJS modules and Uglify (or Rollup) would clean up. Assuming those assumptions are correct... |
It doesn't help by itself, no. But I was hoping it will let us delete |
Regarding use strict, seems intentional: rollup/rollup#1591. Maybe we should just do a pass and remove it ourselves since we know the whole bundle has it anyway. |
Sounds laborious, but maybe just a project replace. Okay if I take a stab? Should I base that off of this branch, or the ES Module branch? |
Sent out a PR with a basic script to do this en-mass, happy to pick it up again tomorrow. gaearon#2 |
0efd834
to
806305d
Compare
806305d
to
593de82
Compare
* Update Rollup * Strip "use strict" in individual modules * Record sizes
Seems like we'll need to do this to get a new option that was added in 0.43. I updated to 0.49 as it was out for a while, and doesn't have the regressions from more aggressive 0.50.
The size has increased but the reason seems to be mostly duplication of
'use strict'
that's now added in the bundle many times (for every module?). I don't understand why yet. We'll get rid of them with ES modules though (I think) so maybe not a big deal.Diff: https://gist.github.com/gaearon/8de8c9d5f47c76061a900e16c938872c