chore(shims/react~jsx-runtime): revert to basic shimming

This commit is contained in:
PalmDevs 2025-08-19 02:40:41 +07:00
parent 0356581e22
commit 138b0dc651
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -1,15 +1,3 @@
import { ReactJSXRuntime } from '@revenge-mod/react' import { ReactJSXRuntime } from '@revenge-mod/react'
import { isProxified, unproxify } from '@revenge-mod/utils/proxy'
import type { ElementType } from 'react'
const { jsx: _jsx, jsxs: _jsxs, Fragment } = ReactJSXRuntime module.exports = ReactJSXRuntime
const jsx: typeof _jsx = (type, props, key) => _jsx(unproxy(type), props, key)
const jsxs: typeof _jsxs = (type, props, key) =>
_jsxs(unproxy(type), props, key)
function unproxy(type: any): ElementType {
return isProxified(type) ? unproxify(type) : type
}
module.exports = { jsx, jsxs, Fragment }