You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
What is the motivation for adding/enhancing this feature?
Vue ui components are getting imported manually in each component, since they are spreadly used they should be registered globally to avoid having to import and registering them in each component.
From my point of view, not much, you prioritize development speed, clean code structure and scalability over 100kb extra in your bundle size. I'm just using what I listed above and if any it eased a bit the chaos when developing, I'm more concerned about the performance of other setups if that makes sense. If you want a clean approach which it's documented in Vuejs docs
It's essentially describing the issue I see here, where you have too many repetitions. First thing that clicks into my mind when I start to see repeated patterns, "If I'm doing that much repetition then I'm doing something wrong".
You can actually use a fancier solution which is registering them on-demand, it's linked in the docs I sent you, here is the example.
Another issue I see with the way this whole ecosystem is that isn't published as an npm packages, so it would be miles easier to let the user decide which component/mixin/functionality they want to use and just link the docs for its usage.
Another example you can look is, a well known UI library, Vuetify. Take a look at how it's built.
Here is an example, I built a vuejs app with default webpack config without vuetify, and then with Vuetify install option. (Which just comes with automatic registration of components, you don't have to import them).
Plain vue
Vuetify installed
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What is the motivation for adding/enhancing this feature?
Vue ui components are getting imported manually in each component, since they are spreadly used they should be registered globally to avoid having to import and registering them in each component.
Examples:
Manual imports inside a component:
Registered globally.
16 lines of code avoided. just in one file...
What are the acceptance criteria?
Vue docs about global registration.
Can you complete this feature request by yourself?
Additional information
The text was updated successfully, but these errors were encountered: