-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
2.2.0: massive bundle size increase #356
Comments
Note that this—
—would definitely be a breaking change. That would require a 3.0. (Which is a good idea, just need to be clear about it!) |
This is expected as a tradeoff for supporting
I'm open to any better ideas. |
@ygongdev Thanks a lot for the clarification. Sometimes there are good reasons one should not try to add beta releases to production apps. 😬 |
There was some discussion originally about making the modifier version a new addon and not a change to this one. It was eventually arrived at not a new addon. It was discussed in the original PR. Maybe reading it might remind us why we didnt do that in the first place, or show us why not doing it was a bad decision :) |
The direction I'm leaning toward is stop development on non-modifier, aka no more Here are some reasons why
The release of |
I'd vote for moving modifier to a 3.0-alpha |
I wrote a codemod for 1.x => 3.x, 2.x seems a lot harder to codemod but still doable. Happy to share for any 1.x-ers |
Describe the bug
The bundle size for
2.2.0-beta
almost doubles compared to2.1.3
.ember-cli-bundle-analyzer lists the following sizes added to vendor.js
5.4kb
version2.1.3
10.3kb
version2.2.0-beta
I think this is due to bundling the modifier version together with the non modifier version, even though both code paths are pretty much independent from each other.
For the
2.2.0
release it would be great if either both versions could be released separately, or the non-modifier version would be dropped in favour of the modifier version (which would also mean old ember versions would no longer be able to use the latest version of ember-sortable).Keeping the current way of packaging would lead to unnecessary bloat of consuming ember apps, as always both versions of this addon will be included and will have to be parsed and compiled by the browser, which easily leads to performance issues especially on mobile.
The text was updated successfully, but these errors were encountered: