-
-
Notifications
You must be signed in to change notification settings - Fork 408
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
Make @ember/component an optional feature #587
Comments
In order to write this RFC, some research needs to go into:
|
Link-to/input/textarea should be rewritten in glimmer |
I don't think that they should necessarily. For starters, they can't be rewritten in place transparently, because they can be imported and extended, so the classes themselves are public API. The APIs themselves are also questionable. I think this is ultimately a separate question from shipping the optional feature itself though. Like I said, we can't replace these classes transparently, they'll have to be added at new import paths anyways. So we can add them in a separate step from disabling the feature itself, either in parallel or later on. @mehulkar to answer your question: The only user of |
They can be extracted into their own addon(s). It can even come installed by default in the blueprints (for now, until there is a replacement for Anyway I'm in favor of making |
Another bit of research that I'd like to do as part of writing this RFC is to see how much would be shaved off the vendor.js file. That's probably the biggest motivation here. |
^ I did some research with an Ember 3.15.0 app and was able to drop 29kb (6kb gzipped) off the vendor.js file in a new app with Ember.Component and friends removed (production build). |
@mehulkar as I know latest ember-source versions bundled during project build (instead of using npm bundle). I'm wondering, Is it possible to create Babel plugin to remove such code? |
I hadn't considered a Babel plugin, but I had explored removing it by somehow overriding the |
@locks I know the title here says optional features, but does it make sense to put this on the Deprecation Candidates board also? |
As an alternative to an "optional feature", extracting the code related to |
@mehulkar I think to start move it forward, we need to get builtin ember components ported to glimmer components. |
@lifeart see pzuraq's comment above:
|
I'm confused. Is extending (or reopening) them considered part of Ember's public API? I thought only using them in a template is public API. |
I'm closing this due to inactivity. This doesn't mean that the idea presented here is invalid, but that, unfortunately, nobody has taken the effort to spearhead it and bring it to completion. Please feel free to advocate for it if you believe that this is still worth pursuing. Thanks! |
I think this is also planned work, we're just not there yet |
My impression here is that most, if not all, of the necessary work to make this happen is encapsulated in other efforts. |
Apps that don't use @ember/component should be able to turn off the feature entirely, both as a way to signal to teammates that it should not be used for new components (old habits are hard to break) and to potentially shake that code out at build time.
The text was updated successfully, but these errors were encountered: