Skip to content

Commit e182ca4

Browse files
CopilotElMassimo
andauthored
fix: avoid dist import in jsx runtime listener wrapper
Agent-Logs-Url: https://github.com/ElMassimo/iles/sessions/64e6d452-d6f0-447a-9605-2933041a844f Co-authored-by: ElMassimo <1158253+ElMassimo@users.noreply.github.com>
1 parent 24e8e02 commit e182ca4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/iles/jsx-runtime.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
createStaticVNode as raw,
66
Fragment,
77
} from 'vue'
8-
import { guardListenerCall } from './dist/client/app/listenerGuard'
98

109
// Internal: Compatibility layer with the automatic JSX runtime of React.
1110
//
@@ -50,6 +49,11 @@ function wrapListeners (props, type) {
5049
}
5150
}
5251

52+
function guardListenerCall (handler, event, details) {
53+
const guard = typeof window !== 'undefined' && window.__ILE_GUARD_LISTENER_CALL__
54+
return guard ? guard(handler, event, details) : handler()
55+
}
56+
5357
// Internal: Extends it to be a stateful component that can perform prop checks.
5458
function defineComponent (MDXContent, definition) {
5559
return defineVueComponent({

0 commit comments

Comments
 (0)