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

Extending the catalog of recognized built-in elements #119

Closed
bnjm opened this issue Sep 27, 2020 · 2 comments
Closed

Extending the catalog of recognized built-in elements #119

bnjm opened this issue Sep 27, 2020 · 2 comments

Comments

@bnjm
Copy link

bnjm commented Sep 27, 2020

Since Vue 3 allows for custom renderers as an alternative to @vue/runtime-dom, A custom runtime might have it's own collection of 'native' elements. See Vugel for a good example. It supports built-in tags like <shader> and <container>.

At the moment @vue/babel-plugin-jsx will flag unknown native elements as a callExpression (https://github.com/vuejs/jsx-next/blob/dev/packages/babel-plugin-jsx/src/utils.ts#L111) if they are not matched in the catalog of known svg or html tags. How can we allow new native elements to be compatible JSX in Vue?

@Amour1688
Copy link
Member

Do you mean isCustomElement ?

@bnjm
Copy link
Author

bnjm commented Sep 28, 2020

@Amour1688 yes that works, thanks! I saw it but thought it was a web components thing

@bnjm bnjm closed this as completed Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants