Subscribe on changes!

isCustomElement seems not working

avatar
Jul 22nd 2021

Version

3.2.0-beta.4

Reproduction link

example

Steps to reproduce

add a webcomponent into a vue app with attributes add the rule to main see

https://v3.vuejs.org/guide/migration/global-api.html#config-ignoredelements-is-now-config-compileroptions-iscustomelement

but you get Screenshot 2021-07-22 at 10 59 28

What is expected?

Vue ignore the element

What is actually happening?

looks like the isCustomElement is complete ignored


And last but not least how to use this with defineCustomeElement ? this is not really clear to me thx for your help

avatar
Jul 22nd 2021

Stackblitz doesn't seem to be using the actual vue-cli since when I clone the project locally the dependencies aren't even correct. e.g. it doesn't even have @vue/compiler-sfc in the dependencies list. It seems to be emulating what vue-cli does in their custom in-browser setup while pretending to be a vue-cli project.

The config works as expected in an actual vue-cli project.