Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit 47cf216

Browse files
committed
readme
1 parent 82abbca commit 47cf216

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ const CustomElement = wrap(Vue, Component)
3939
window.customElements.define('my-element', CustomElement)
4040
```
4141

42+
Note it works with async components as well - the async component factory will only be called when an instance of the custom element is created on the page:
43+
44+
``` js
45+
const CustomElement = wrap(Vue, () => import(`MyComponent.vue`))
46+
47+
window.customElements.define('my-element', CustomElement)
48+
```
49+
4250
## Interface Proxying Details
4351

4452
### Props

0 commit comments

Comments
 (0)