Skip to content

Commit fecb119

Browse files
committed
add ignoredElements to api doc
1 parent 8a23079 commit fecb119

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/api/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,22 @@ type: api
7979

8080
> [Sentry](https://sentry.io), an error tracking service, provides [official integration](https://sentry.io/for/vue/) using this option.
8181
82+
### ignoredElements
83+
84+
- **Type:** `Array<string>`
85+
86+
- **Default:** `[]`
87+
88+
- **Usage:**
89+
90+
``` js
91+
Vue.config.ignoredElements = [
92+
'my-custom-web-component', 'another-web-component'
93+
]
94+
```
95+
96+
Make Vue ignore custom elements defined outside of Vue (e.g., using the Web Components APIs). Otherwise, it will throw a warning about an `Unknown custom element`, assuming that you forgot to register a global component or misspelled a component name.
97+
8298
### keyCodes
8399

84100
- **Type:** `{ [key: string]: number }`

0 commit comments

Comments
 (0)