Skip to content
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

[Feature request] Reference globally registered component to Vetur #2243

Closed
1 task done
victorgarciaesgi opened this issue Sep 4, 2020 · 7 comments
Closed
1 task done

Comments

@victorgarciaesgi
Copy link

  • I have searched through existing issues

Feature Request

First off all, thanks for this great update! Having props check and component signature is so useful, you are catching up fast with TSX.

I wondered if you though of a way of referencing globally registered components?

For exemple in Nuxt, I have a plugin that register a bunch of components, but the path can be different for all every project. Maybe a config file like vetur.config.js to indicate a path to the file?

Vue.component('SvgIcon', SvgIcon);
Vue.component('Spinner', Spinner);
Vue.component('Popin', Popin);
@yoyo930021
Copy link
Member

yoyo930021 commented Oct 14, 2020

Hi everyone,
If you interested this issue,
you can go to #2377 and #2378.
View and post your ideas.

@rchl
Copy link
Collaborator

rchl commented Oct 14, 2020

Why mixing global components and multiple-roots in the same issue? If it's because it is supposed to depend on the new configuration file then I would still keep it separate with it being dependant on the other.

@yoyo930021
Copy link
Member

Why mixing global components and multiple-roots in the same issue? If it's because it is supposed to depend on the new configuration file then I would still keep it separate with it being dependant on the other.

It is only a message for guide users to discuss RFCs.
I won't discuss multiple-roots in this issue.

@rchl
Copy link
Collaborator

rchl commented Oct 14, 2020

My comment was about the RFC itself. It IMO shouldn't mix global components into it.

@yoyo930021
Copy link
Member

yoyo930021 commented Dec 8, 2020

Add in v0.31.0

@yoyo930021
Copy link
Member

My comment was about the RFC itself. It IMO shouldn't mix global components into it.

I loss your comment. 😅
I think your problem solved in RFC.

@rchl
Copy link
Collaborator

rchl commented Dec 8, 2020

My comment was about the RFC itself. It IMO shouldn't mix global components into it.

I loss your comment. 😅
I think your problem solved in RFC.

I might have been confused initially anyway so probably all good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants