|
@@ -1,4 +1,5 @@
|
|
|
import {
|
|
import {
|
|
|
|
|
+ type App,
|
|
|
type ComponentInternalInstance,
|
|
type ComponentInternalInstance,
|
|
|
type ConcreteComponent,
|
|
type ConcreteComponent,
|
|
|
MoveType,
|
|
MoveType,
|
|
@@ -31,6 +32,7 @@ import { type RawProps, rawPropsProxyHandlers } from './componentProps'
|
|
|
import type { RawSlots, VaporSlot } from './componentSlots'
|
|
import type { RawSlots, VaporSlot } from './componentSlots'
|
|
|
import { renderEffect } from './renderEffect'
|
|
import { renderEffect } from './renderEffect'
|
|
|
import { createTextNode } from './dom/node'
|
|
import { createTextNode } from './dom/node'
|
|
|
|
|
+import { optimizePropertyLookup } from './dom/prop'
|
|
|
|
|
|
|
|
// mounting vapor components and slots in vdom
|
|
// mounting vapor components and slots in vdom
|
|
|
const vaporInteropImpl: Omit<
|
|
const vaporInteropImpl: Omit<
|
|
@@ -283,4 +285,9 @@ export const vaporInteropPlugin: Plugin = app => {
|
|
|
vdomUnmount: internals.umt,
|
|
vdomUnmount: internals.umt,
|
|
|
vdomSlot: renderVDOMSlot.bind(null, internals),
|
|
vdomSlot: renderVDOMSlot.bind(null, internals),
|
|
|
})
|
|
})
|
|
|
|
|
+ const mount = app.mount
|
|
|
|
|
+ app.mount = ((...args) => {
|
|
|
|
|
+ optimizePropertyLookup()
|
|
|
|
|
+ return mount(...args)
|
|
|
|
|
+ }) satisfies App['mount']
|
|
|
}
|
|
}
|