sometimes I'm stupid

This commit is contained in:
Nuckyz 2024-05-23 03:42:58 -03:00
parent 66e1db1fdb
commit 01a4ac9c13
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -18,7 +18,7 @@ const initCallbackRegex = canonicalizeMatch(/{return \i\(".+?"\)}/);
const modulesProxyhandler: ProxyHandler<WebpackRequire["m"]> = {
...Object.fromEntries(Object.getOwnPropertyNames(Reflect).map(propName =>
[propName, (target: WebpackRequire["m"], ...args: any[]) => Reflect[propName](target, ...args)]
[propName, (...args: any[]) => Reflect[propName](...args)]
)),
get: (target, p) => {
const mod = Reflect.get(target, p);